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- (config) — Configure the Client client.
- config (Client::Configuration)
# 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::ConfigurationConfigure 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::OperationCreateActiveDirectory Creates the active directory specified in the request.
def create_active_directory(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter , the last a letter or a number, and a 63 character maximum.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_backup
def create_backup(request, options = nil) -> ::Gapic::Operation
def create_backup(parent: nil, backup_id: nil, backup: nil) -> ::Gapic::OperationCreates a backup from the volume specified in the request The backup can be created from the given snapshot if specified in the request. If no snapshot specified, there'll be a new snapshot taken to initiate the backup creation.
def create_backup(request, options = nil) -> ::Gapic::Operationcreate_backup via a request object, either of type
CreateBackupRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateBackupRequest, ::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_backup(parent: nil, backup_id: nil, backup: nil) -> ::Gapic::Operationcreate_backup 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 backupVault to create the backups of, in the format
projects/*/locations/*/backupVaults/{backup_vault_id} - backup_id (::String) — Required. The ID to use for the backup. The ID must be unique within the specified backupVault. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- backup (::Google::Cloud::NetApp::V1::Backup, ::Hash) — Required. A backup resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::CreateBackupRequest.new # Call the create_backup method. result = client.create_backup 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_backup_policy
def create_backup_policy(request, options = nil) -> ::Gapic::Operation
def create_backup_policy(parent: nil, backup_policy: nil, backup_policy_id: nil) -> ::Gapic::OperationCreates new backup policy
def create_backup_policy(request, options = nil) -> ::Gapic::Operationcreate_backup_policy via a request object, either of type
CreateBackupPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest, ::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_backup_policy(parent: nil, backup_policy: nil, backup_policy_id: nil) -> ::Gapic::Operationcreate_backup_policy 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 location to create the backup policies of, in the format
projects/{project_id}/locations/{location} - backup_policy (::Google::Cloud::NetApp::V1::BackupPolicy, ::Hash) — Required. A backupPolicy resource
- backup_policy_id (::String) — Required. The ID to use for the backup policy. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::CreateBackupPolicyRequest.new # Call the create_backup_policy method. result = client.create_backup_policy 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_backup_vault
def create_backup_vault(request, options = nil) -> ::Gapic::Operation
def create_backup_vault(parent: nil, backup_vault_id: nil, backup_vault: nil) -> ::Gapic::OperationCreates new backup vault
def create_backup_vault(request, options = nil) -> ::Gapic::Operationcreate_backup_vault via a request object, either of type
CreateBackupVaultRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateBackupVaultRequest, ::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_backup_vault(parent: nil, backup_vault_id: nil, backup_vault: nil) -> ::Gapic::Operationcreate_backup_vault 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 location to create the backup vaults, in the format
projects/{project_id}/locations/{location} - backup_vault_id (::String) — Required. The ID to use for the backupVault. The ID must be unique within the specified location. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- backup_vault (::Google::Cloud::NetApp::V1::BackupVault, ::Hash) — Required. A backupVault resource
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::CreateBackupVaultRequest.new # Call the create_backup_vault method. result = client.create_backup_vault 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::OperationCreates a new KMS config.
def create_kms_config(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- kms_config (::Google::Cloud::NetApp::V1::KmsConfig, ::Hash) — Required. The required parameters to create a new KmsConfig.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_quota_rule
def create_quota_rule(request, options = nil) -> ::Gapic::Operation
def create_quota_rule(parent: nil, quota_rule: nil, quota_rule_id: nil) -> ::Gapic::OperationCreates a new quota rule.
def create_quota_rule(request, options = nil) -> ::Gapic::Operationcreate_quota_rule via a request object, either of type
CreateQuotaRuleRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::CreateQuotaRuleRequest, ::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_quota_rule(parent: nil, quota_rule: nil, quota_rule_id: nil) -> ::Gapic::Operationcreate_quota_rule 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 CreateQuotaRuleRequest
- quota_rule (::Google::Cloud::NetApp::V1::QuotaRule, ::Hash) — Required. Fields of the to be created quota rule.
- quota_rule_id (::String) — Required. ID of the quota rule to create. Must be unique within the parent resource. Must contain only letters, numbers, underscore and hyphen, with the first character a letter or underscore, the last a letter or underscore or a number, and a 63 character maximum.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::CreateQuotaRuleRequest.new # Call the create_quota_rule method. result = client.create_quota_rule 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::OperationCreate a new replication for a volume.
def create_replication(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationCreate a new snapshot for a volume.
def create_snapshot(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationCreates a new storage pool.
def create_storage_pool(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- storage_pool (::Google::Cloud::NetApp::V1::StoragePool, ::Hash) — Required. The required parameters to create a new storage pool.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationCreates a new Volume in a given project and location.
def create_volume(request, options = nil) -> ::Gapic::Operationcreate_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::Operationcreate_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. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- volume (::Google::Cloud::NetApp::V1::Volume, ::Hash) — Required. The volume being created.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationDelete the active directory specified in the request.
def delete_active_directory(request, options = nil) -> ::Gapic::Operationdelete_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::Operationdelete_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_backup
def delete_backup(request, options = nil) -> ::Gapic::Operation
def delete_backup(name: nil) -> ::Gapic::OperationWarning! This operation will permanently delete the backup.
def delete_backup(request, options = nil) -> ::Gapic::Operationdelete_backup via a request object, either of type
DeleteBackupRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteBackupRequest, ::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_backup(name: nil) -> ::Gapic::Operationdelete_backup 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 backup resource name, in the format
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::DeleteBackupRequest.new # Call the delete_backup method. result = client.delete_backup 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_backup_policy
def delete_backup_policy(request, options = nil) -> ::Gapic::Operation
def delete_backup_policy(name: nil) -> ::Gapic::OperationWarning! This operation will permanently delete the backup policy.
def delete_backup_policy(request, options = nil) -> ::Gapic::Operationdelete_backup_policy via a request object, either of type
DeleteBackupPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest, ::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_backup_policy(name: nil) -> ::Gapic::Operationdelete_backup_policy 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 backup policy resource name, in the format
projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest.new # Call the delete_backup_policy method. result = client.delete_backup_policy 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_backup_vault
def delete_backup_vault(request, options = nil) -> ::Gapic::Operation
def delete_backup_vault(name: nil) -> ::Gapic::OperationWarning! This operation will permanently delete the backup vault.
def delete_backup_vault(request, options = nil) -> ::Gapic::Operationdelete_backup_vault via a request object, either of type
DeleteBackupVaultRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest, ::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_backup_vault(name: nil) -> ::Gapic::Operationdelete_backup_vault 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 backupVault resource name, in the format
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::DeleteBackupVaultRequest.new # Call the delete_backup_vault method. result = client.delete_backup_vault 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::OperationWarning! This operation will permanently delete the Kms config.
def delete_kms_config(request, options = nil) -> ::Gapic::Operationdelete_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::Operationdelete_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_quota_rule
def delete_quota_rule(request, options = nil) -> ::Gapic::Operation
def delete_quota_rule(name: nil) -> ::Gapic::OperationDeletes a quota rule.
def delete_quota_rule(request, options = nil) -> ::Gapic::Operationdelete_quota_rule via a request object, either of type
DeleteQuotaRuleRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::DeleteQuotaRuleRequest, ::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_quota_rule(name: nil) -> ::Gapic::Operationdelete_quota_rule 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 quota rule.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::DeleteQuotaRuleRequest.new # Call the delete_quota_rule method. result = client.delete_quota_rule 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::OperationDeletes a replication.
def delete_replication(request, options = nil) -> ::Gapic::Operationdelete_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::Operationdelete_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}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationDeletes a snapshot.
def delete_snapshot(request, options = nil) -> ::Gapic::Operationdelete_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::Operationdelete_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}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationWarning! This operation will permanently delete the storage pool.
def delete_storage_pool(request, options = nil) -> ::Gapic::Operationdelete_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::Operationdelete_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationDeletes a single Volume.
def delete_volume(request, options = nil) -> ::Gapic::Operationdelete_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::Operationdelete_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.)
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationEncrypt the existing volumes without CMEK encryption with the desired the KMS config for the whole region.
def encrypt_volumes(request, options = nil) -> ::Gapic::Operationencrypt_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::Operationencrypt_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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
#establish_peering
def establish_peering(request, options = nil) -> ::Gapic::Operation
def establish_peering(name: nil, peer_cluster_name: nil, peer_svm_name: nil, peer_ip_addresses: nil, peer_volume_name: nil) -> ::Gapic::OperationEstablish replication peering.
def establish_peering(request, options = nil) -> ::Gapic::Operationestablish_peering via a request object, either of type
EstablishPeeringRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::EstablishPeeringRequest, ::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 establish_peering(name: nil, peer_cluster_name: nil, peer_svm_name: nil, peer_ip_addresses: nil, peer_volume_name: nil) -> ::Gapic::Operationestablish_peering via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- name (::String) — Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}.
- peer_cluster_name (::String) — Required. Name of the user's local source cluster to be peered with the destination cluster.
- peer_svm_name (::String) — Required. Name of the user's local source vserver svm to be peered with the destination vserver svm.
- peer_ip_addresses (::Array<::String>) — Optional. List of IPv4 ip addresses to be used for peering.
- peer_volume_name (::String) — Required. Name of the user's local source volume to be peered with the destination volume.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::EstablishPeeringRequest.new # Call the establish_peering method. result = client.establish_peering request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#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::ActiveDirectoryDescribes a specified active directory.
def get_active_directory(request, options = nil) -> ::Google::Cloud::NetApp::V1::ActiveDirectoryget_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::ActiveDirectoryget_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::ActiveDirectory)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_backup
def get_backup(request, options = nil) -> ::Google::Cloud::NetApp::V1::Backup
def get_backup(name: nil) -> ::Google::Cloud::NetApp::V1::BackupReturns the description of the specified backup
def get_backup(request, options = nil) -> ::Google::Cloud::NetApp::V1::Backupget_backup via a request object, either of type
GetBackupRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetBackupRequest, ::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_backup(name: nil) -> ::Google::Cloud::NetApp::V1::Backupget_backup 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 backup resource name, in the format
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::Backup)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::GetBackupRequest.new # Call the get_backup method. result = client.get_backup request # The returned object is of type Google::Cloud::NetApp::V1::Backup. p result
#get_backup_policy
def get_backup_policy(request, options = nil) -> ::Google::Cloud::NetApp::V1::BackupPolicy
def get_backup_policy(name: nil) -> ::Google::Cloud::NetApp::V1::BackupPolicyReturns the description of the specified backup policy by backup_policy_id.
def get_backup_policy(request, options = nil) -> ::Google::Cloud::NetApp::V1::BackupPolicyget_backup_policy via a request object, either of type
GetBackupPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetBackupPolicyRequest, ::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_backup_policy(name: nil) -> ::Google::Cloud::NetApp::V1::BackupPolicyget_backup_policy 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 backupPolicy resource name, in the format
projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::BackupPolicy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::GetBackupPolicyRequest.new # Call the get_backup_policy method. result = client.get_backup_policy request # The returned object is of type Google::Cloud::NetApp::V1::BackupPolicy. p result
#get_backup_vault
def get_backup_vault(request, options = nil) -> ::Google::Cloud::NetApp::V1::BackupVault
def get_backup_vault(name: nil) -> ::Google::Cloud::NetApp::V1::BackupVaultReturns the description of the specified backup vault
def get_backup_vault(request, options = nil) -> ::Google::Cloud::NetApp::V1::BackupVaultget_backup_vault via a request object, either of type
GetBackupVaultRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetBackupVaultRequest, ::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_backup_vault(name: nil) -> ::Google::Cloud::NetApp::V1::BackupVaultget_backup_vault 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 backupVault resource name, in the format
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::BackupVault)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::GetBackupVaultRequest.new # Call the get_backup_vault method. result = client.get_backup_vault request # The returned object is of type Google::Cloud::NetApp::V1::BackupVault. 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::KmsConfigReturns the description of the specified KMS config by kms_config_id.
def get_kms_config(request, options = nil) -> ::Google::Cloud::NetApp::V1::KmsConfigget_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::KmsConfigget_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::KmsConfig)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_quota_rule
def get_quota_rule(request, options = nil) -> ::Google::Cloud::NetApp::V1::QuotaRule
def get_quota_rule(name: nil) -> ::Google::Cloud::NetApp::V1::QuotaRuleReturns details of the specified quota rule.
def get_quota_rule(request, options = nil) -> ::Google::Cloud::NetApp::V1::QuotaRuleget_quota_rule via a request object, either of type
GetQuotaRuleRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::GetQuotaRuleRequest, ::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_quota_rule(name: nil) -> ::Google::Cloud::NetApp::V1::QuotaRuleget_quota_rule 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 quota rule
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::QuotaRule)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::GetQuotaRuleRequest.new # Call the get_quota_rule method. result = client.get_quota_rule request # The returned object is of type Google::Cloud::NetApp::V1::QuotaRule. p result
#get_replication
def get_replication(request, options = nil) -> ::Google::Cloud::NetApp::V1::Replication
def get_replication(name: nil) -> ::Google::Cloud::NetApp::V1::ReplicationDescribe a replication for a volume.
def get_replication(request, options = nil) -> ::Google::Cloud::NetApp::V1::Replicationget_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::Replicationget_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}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::Replication)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::SnapshotDescribe a snapshot for a volume.
def get_snapshot(request, options = nil) -> ::Google::Cloud::NetApp::V1::Snapshotget_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::Snapshotget_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}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::Snapshot)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::StoragePoolReturns the description of the specified storage pool by poolId.
def get_storage_pool(request, options = nil) -> ::Google::Cloud::NetApp::V1::StoragePoolget_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::StoragePoolget_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::StoragePool)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::VolumeGets details of a single Volume.
def get_volume(request, options = nil) -> ::Google::Cloud::NetApp::V1::Volumeget_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::Volumeget_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::Volume)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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| ... } -> ClientCreate a new NetApp REST 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::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) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>
def list_active_directories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>Lists active directories.
def list_active_directories(request, options = nil) -> ::Gapic::Rest::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::Rest::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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::ActiveDirectory>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_backup_policies
def list_backup_policies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupPolicy>
def list_backup_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupPolicy>Returns list of all available backup policies.
def list_backup_policies(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupPolicy>list_backup_policies via a request object, either of type
ListBackupPoliciesRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest, ::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_backup_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupPolicy>list_backup_policies 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 ListBackupPoliciesRequest
- 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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupPolicy>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupPolicy>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::ListBackupPoliciesRequest.new # Call the list_backup_policies method. result = client.list_backup_policies 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::BackupPolicy. p item end
#list_backup_vaults
def list_backup_vaults(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupVault>
def list_backup_vaults(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupVault>Returns list of all available backup vaults.
def list_backup_vaults(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupVault>list_backup_vaults via a request object, either of type
ListBackupVaultsRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListBackupVaultsRequest, ::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_backup_vaults(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupVault>list_backup_vaults 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 location for which to retrieve backupVault information,
in the format
projects/{project_id}/locations/{location}. - 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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupVault>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::BackupVault>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::ListBackupVaultsRequest.new # Call the list_backup_vaults method. result = client.list_backup_vaults 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::BackupVault. p item end
#list_backups
def list_backups(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Backup>
def list_backups(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Backup>Returns descriptions of all backups for a backupVault.
def list_backups(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Backup>list_backups via a request object, either of type
ListBackupsRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListBackupsRequest, ::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_backups(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Backup>list_backups 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 backupVault for which to retrieve backup information,
in the format
projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}. To retrieve backup information for all locations, use "-" for the{location}value. To retrieve backup information for all backupVaults, use "-" for the{backup_vault_id}value. To retrieve backup information for a volume, use "-" for the{backup_vault_id}value and specify volume full name with the filter. - page_size (::Integer) — The maximum number of items to return. The service may return fewer than this value. The maximum value is 1000; values above 1000 will be coerced to 1000.
- 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) — The standard list filter. If specified, backups will be returned based on the attribute name that matches the filter expression. If empty, then no backups are filtered out. See https://google.aip.dev/160
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Backup>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Backup>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::ListBackupsRequest.new # Call the list_backups method. result = client.list_backups 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::Backup. p item end
#list_kms_configs
def list_kms_configs(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>
def list_kms_configs(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>Returns descriptions of all KMS configs owned by the caller.
def list_kms_configs(request, options = nil) -> ::Gapic::Rest::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::Rest::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::KmsConfig>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_quota_rules
def list_quota_rules(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::QuotaRule>
def list_quota_rules(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::QuotaRule>Returns list of all quota rules in a location.
def list_quota_rules(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::QuotaRule>list_quota_rules via a request object, either of type
ListQuotaRulesRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ListQuotaRulesRequest, ::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_quota_rules(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::QuotaRule>list_quota_rules 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 ListQuotaRulesRequest
- page_size (::Integer) — Optional. Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
- page_token (::String) — Optional. A token identifying a page of results the server should return.
- filter (::String) — Optional. Filtering results
- order_by (::String) — Optional. Hint for how to order the results
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::QuotaRule>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::QuotaRule>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::ListQuotaRulesRequest.new # Call the list_quota_rules method. result = client.list_quota_rules 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::QuotaRule. p item end
#list_replications
def list_replications(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>
def list_replications(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>Returns descriptions of all replications for a volume.
def list_replications(request, options = nil) -> ::Gapic::Rest::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::Rest::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Replication>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>
def list_snapshots(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>Returns descriptions of all snapshots for a volume.
def list_snapshots(request, options = nil) -> ::Gapic::Rest::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::Rest::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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Snapshot>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>
def list_storage_pools(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>Returns descriptions of all storage pools owned by the caller.
def list_storage_pools(request, options = nil) -> ::Gapic::Rest::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::Rest::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) — Optional. The maximum number of items to return.
- page_token (::String) — Optional. The next_page_token value to use if there are additional results to retrieve for this list request.
- order_by (::String) — Optional. Sort results. Supported values are "name", "name desc" or "" (unsorted).
- filter (::String) — Optional. List filter.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::StoragePool>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>
def list_volumes(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>Lists Volumes in a given project.
def list_volumes(request, options = nil) -> ::Gapic::Rest::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::Rest::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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::NetApp::V1::Volume>)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::Rest::ClientGet the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Rest::Client)
#logger
def logger() -> LoggerThe logger used for request/response debug logging.
- (Logger)
#operations_client
def operations_client() -> ::Google::Cloud::NetApp::V1::NetApp::Rest::OperationsGet the associated client for long-running operations.
#resume_replication
def resume_replication(request, options = nil) -> ::Gapic::Operation
def resume_replication(name: nil) -> ::Gapic::OperationResume Cross Region Replication.
def resume_replication(request, options = nil) -> ::Gapic::Operationresume_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::Operationresume_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}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationReverses direction of replication. Source becomes destination and destination becomes source.
def reverse_replication_direction(request, options = nil) -> ::Gapic::Operationreverse_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::Operationreverse_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}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationRevert 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::Operationrevert_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::Operationrevert_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}
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationStop Cross Region Replication.
def stop_replication(request, options = nil) -> ::Gapic::Operationstop_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::Operationstop_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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
#switch_active_replica_zone
def switch_active_replica_zone(request, options = nil) -> ::Gapic::Operation
def switch_active_replica_zone(name: nil) -> ::Gapic::OperationThis operation will switch the active/replica zone for a regional storagePool.
def switch_active_replica_zone(request, options = nil) -> ::Gapic::Operationswitch_active_replica_zone via a request object, either of type
SwitchActiveReplicaZoneRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::SwitchActiveReplicaZoneRequest, ::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 switch_active_replica_zone(name: nil) -> ::Gapic::Operationswitch_active_replica_zone 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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::SwitchActiveReplicaZoneRequest.new # Call the switch_active_replica_zone method. result = client.switch_active_replica_zone 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
#sync_replication
def sync_replication(request, options = nil) -> ::Gapic::Operation
def sync_replication(name: nil) -> ::Gapic::OperationSyncs the replication. This will invoke one time volume data transfer from source to destination.
def sync_replication(request, options = nil) -> ::Gapic::Operationsync_replication via a request object, either of type
SyncReplicationRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::SyncReplicationRequest, ::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 sync_replication(name: nil) -> ::Gapic::Operationsync_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}.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::SyncReplicationRequest.new # Call the sync_replication method. result = client.sync_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
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_active_directory
def update_active_directory(request, options = nil) -> ::Gapic::Operation
def update_active_directory(update_mask: nil, active_directory: nil) -> ::Gapic::OperationUpdate the parameters of an active directories.
def update_active_directory(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_backup
def update_backup(request, options = nil) -> ::Gapic::Operation
def update_backup(update_mask: nil, backup: nil) -> ::Gapic::OperationUpdate backup with full spec.
def update_backup(request, options = nil) -> ::Gapic::Operationupdate_backup via a request object, either of type
UpdateBackupRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateBackupRequest, ::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_backup(update_mask: nil, backup: nil) -> ::Gapic::Operationupdate_backup 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 Backup resource to be updated. 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.
- backup (::Google::Cloud::NetApp::V1::Backup, ::Hash) — Required. The backup being updated
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::UpdateBackupRequest.new # Call the update_backup method. result = client.update_backup 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_backup_policy
def update_backup_policy(request, options = nil) -> ::Gapic::Operation
def update_backup_policy(update_mask: nil, backup_policy: nil) -> ::Gapic::OperationUpdates settings of a specific backup policy.
def update_backup_policy(request, options = nil) -> ::Gapic::Operationupdate_backup_policy via a request object, either of type
UpdateBackupPolicyRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest, ::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_backup_policy(update_mask: nil, backup_policy: nil) -> ::Gapic::Operationupdate_backup_policy 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 Backup Policy 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.
- backup_policy (::Google::Cloud::NetApp::V1::BackupPolicy, ::Hash) — Required. The backup policy being updated
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest.new # Call the update_backup_policy method. result = client.update_backup_policy 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_backup_vault
def update_backup_vault(request, options = nil) -> ::Gapic::Operation
def update_backup_vault(update_mask: nil, backup_vault: nil) -> ::Gapic::OperationUpdates the settings of a specific backup vault.
def update_backup_vault(request, options = nil) -> ::Gapic::Operationupdate_backup_vault via a request object, either of type
UpdateBackupVaultRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest, ::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_backup_vault(update_mask: nil, backup_vault: nil) -> ::Gapic::Operationupdate_backup_vault 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 Backup resource to be updated. 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.
- backup_vault (::Google::Cloud::NetApp::V1::BackupVault, ::Hash) — Required. The backupVault being updated
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::UpdateBackupVaultRequest.new # Call the update_backup_vault method. result = client.update_backup_vault 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::OperationUpdates the Kms config properties with the full spec
def update_kms_config(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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_quota_rule
def update_quota_rule(request, options = nil) -> ::Gapic::Operation
def update_quota_rule(update_mask: nil, quota_rule: nil) -> ::Gapic::OperationUpdates a quota rule.
def update_quota_rule(request, options = nil) -> ::Gapic::Operationupdate_quota_rule via a request object, either of type
UpdateQuotaRuleRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::UpdateQuotaRuleRequest, ::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_quota_rule(update_mask: nil, quota_rule: nil) -> ::Gapic::Operationupdate_quota_rule 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) — Optional. Field mask is used to specify the fields to be overwritten in the Quota Rule 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.
- quota_rule (::Google::Cloud::NetApp::V1::QuotaRule, ::Hash) — Required. The quota rule being updated
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::UpdateQuotaRuleRequest.new # Call the update_quota_rule method. result = client.update_quota_rule 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::OperationUpdates the settings of a specific replication.
def update_replication(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationUpdates the settings of a specific snapshot.
def update_snapshot(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationUpdates the storage pool properties with the full spec
def update_storage_pool(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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::OperationUpdates the parameters of a single Volume.
def update_volume(request, options = nil) -> ::Gapic::Operationupdate_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::Operationupdate_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
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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
#validate_directory_service
def validate_directory_service(request, options = nil) -> ::Gapic::Operation
def validate_directory_service(name: nil, directory_service_type: nil) -> ::Gapic::OperationValidateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.
def validate_directory_service(request, options = nil) -> ::Gapic::Operationvalidate_directory_service via a request object, either of type
ValidateDirectoryServiceRequest or an equivalent Hash.
- request (::Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest, ::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 validate_directory_service(name: nil, directory_service_type: nil) -> ::Gapic::Operationvalidate_directory_service 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
- directory_service_type (::Google::Cloud::NetApp::V1::DirectoryServiceType) — Type of directory service policy attached to the storage pool.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::NetApp::V1::ValidateDirectoryServiceRequest.new # Call the validate_directory_service method. result = client.validate_directory_service 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::VerifyKmsConfigResponseVerifies KMS config reachability.
def verify_kms_config(request, options = nil) -> ::Google::Cloud::NetApp::V1::VerifyKmsConfigResponseverify_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::VerifyKmsConfigResponseverify_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.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::NetApp::V1::VerifyKmsConfigResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call 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::Rest::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