# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'google/apis/core/base_service' require 'google/apis/core/json_representation' require 'google/apis/core/hashable' require 'google/apis/errors' module Google module Apis module NetappV1 # NetApp API # # Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage # service that provides advanced data management capabilities and highly # scalable performance with global availability. # # @example # require 'google/apis/netapp_v1' # # Netapp = Google::Apis::NetappV1 # Alias the module # service = Netapp::NetAppFilesService.new # # @see https://cloud.google.com/netapp/ class NetAppFilesService < Google::Apis::Core::BaseService DEFAULT_ENDPOINT_TEMPLATE = "https://netapp.$UNIVERSE_DOMAIN$/" # @return [String] # API key. Your API key identifies your project and provides you with API access, # quota, and reports. Required unless you provide an OAuth 2.0 token. attr_accessor :key # @return [String] # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-netapp_v1', client_version: Google::Apis::NetappV1::GEM_VERSION) @batch_path = 'batch' end # Gets information about a location. # @param [String] name # Resource name for the location. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Location] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Location] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Location::Representation command.response_class = Google::Apis::NetappV1::Location command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists information about the supported locations for this service. # @param [String] name # The resource that owns the locations collection, if applicable. # @param [String] filter # A filter to narrow down results to a preferred subset. The filtering language # accepts strings like `"displayName=tokyo"`, and is documented in more detail # in [AIP-160](https://google.aip.dev/160). # @param [Fixnum] page_size # The maximum number of results to return. If not set, the service selects a # default. # @param [String] page_token # A page token received from the `next_page_token` field in the response. Send # that page token to receive the subsequent page. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListLocationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListLocationsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/locations', options) command.response_representation = Google::Apis::NetappV1::ListLocationsResponse::Representation command.response_class = Google::Apis::NetappV1::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # CreateActiveDirectory Creates the active directory specified in the request. # @param [String] parent # Required. Value for parent. # @param [Google::Apis::NetappV1::ActiveDirectory] active_directory_object # @param [String] active_directory_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_active_directory(parent, active_directory_object = nil, active_directory_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/activeDirectories', options) command.request_representation = Google::Apis::NetappV1::ActiveDirectory::Representation command.request_object = active_directory_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['activeDirectoryId'] = active_directory_id unless active_directory_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Delete the active directory specified in the request. # @param [String] name # Required. Name of the active directory. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_active_directory(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Describes a specified active directory. # @param [String] name # Required. Name of the active directory. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ActiveDirectory] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ActiveDirectory] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_active_directory(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::ActiveDirectory::Representation command.response_class = Google::Apis::NetappV1::ActiveDirectory command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists active directories. # @param [String] parent # Required. Parent value for ListActiveDirectoriesRequest # @param [String] filter # Filtering results # @param [String] order_by # Hint for how to order the results # @param [Fixnum] page_size # Requested page size. Server may return fewer items than requested. If # unspecified, the server will pick an appropriate default. # @param [String] page_token # A token identifying a page of results the server should return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListActiveDirectoriesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListActiveDirectoriesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_active_directories(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/activeDirectories', options) command.response_representation = Google::Apis::NetappV1::ListActiveDirectoriesResponse::Representation command.response_class = Google::Apis::NetappV1::ListActiveDirectoriesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Update the parameters of an active directories. # @param [String] name # Identifier. The resource name of the active directory. Format: `projects/` # project_number`/locations/`location_id`/activeDirectories/`active_directory_id` # `. # @param [Google::Apis::NetappV1::ActiveDirectory] active_directory_object # @param [String] update_mask # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_active_directory(name, active_directory_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::ActiveDirectory::Representation command.request_object = active_directory_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates new backup policy # @param [String] parent # Required. The location to create the backup policies of, in the format ` # projects/`project_id`/locations/`location`` # @param [Google::Apis::NetappV1::BackupPolicy] backup_policy_object # @param [String] backup_policy_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_backup_policy(parent, backup_policy_object = nil, backup_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/backupPolicies', options) command.request_representation = Google::Apis::NetappV1::BackupPolicy::Representation command.request_object = backup_policy_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['backupPolicyId'] = backup_policy_id unless backup_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Warning! This operation will permanently delete the backup policy. # @param [String] name # Required. The backup policy resource name, in the format `projects/`project_id` # /locations/`location`/backupPolicies/`backup_policy_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_backup_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns the description of the specified backup policy by backup_policy_id. # @param [String] name # Required. The backupPolicy resource name, in the format `projects/`project_id`/ # locations/`location`/backupPolicies/`backup_policy_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::BackupPolicy] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::BackupPolicy] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_backup_policy(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::BackupPolicy::Representation command.response_class = Google::Apis::NetappV1::BackupPolicy command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns list of all available backup policies. # @param [String] parent # Required. Parent value for ListBackupPoliciesRequest # @param [String] filter # Filtering results # @param [String] order_by # Hint for how to order the results # @param [Fixnum] page_size # Requested page size. Server may return fewer items than requested. If # unspecified, the server will pick an appropriate default. # @param [String] page_token # A token identifying a page of results the server should return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListBackupPoliciesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListBackupPoliciesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_backup_policies(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/backupPolicies', options) command.response_representation = Google::Apis::NetappV1::ListBackupPoliciesResponse::Representation command.response_class = Google::Apis::NetappV1::ListBackupPoliciesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates settings of a specific backup policy. # @param [String] name # Identifier. The resource name of the backup policy. Format: `projects/` # project_id`/locations/`location`/backupPolicies/`backup_policy_id``. # @param [Google::Apis::NetappV1::BackupPolicy] backup_policy_object # @param [String] update_mask # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_backup_policy(name, backup_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::BackupPolicy::Representation command.request_object = backup_policy_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates new backup vault # @param [String] parent # Required. The location to create the backup vaults, in the format `projects/` # project_id`/locations/`location`` # @param [Google::Apis::NetappV1::BackupVault] backup_vault_object # @param [String] backup_vault_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_backup_vault(parent, backup_vault_object = nil, backup_vault_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/backupVaults', options) command.request_representation = Google::Apis::NetappV1::BackupVault::Representation command.request_object = backup_vault_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['backupVaultId'] = backup_vault_id unless backup_vault_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Warning! This operation will permanently delete the backup vault. # @param [String] name # Required. The backupVault resource name, in the format `projects/`project_id`/ # locations/`location`/backupVaults/`backup_vault_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_backup_vault(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns the description of the specified backup vault # @param [String] name # Required. The backupVault resource name, in the format `projects/`project_id`/ # locations/`location`/backupVaults/`backup_vault_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::BackupVault] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::BackupVault] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_backup_vault(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::BackupVault::Representation command.response_class = Google::Apis::NetappV1::BackupVault command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns list of all available backup vaults. # @param [String] parent # Required. The location for which to retrieve backupVault information, in the # format `projects/`project_id`/locations/`location``. # @param [String] filter # List filter. # @param [String] order_by # Sort results. Supported values are "name", "name desc" or "" (unsorted). # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token # The next_page_token value to use if there are additional results to retrieve # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListBackupVaultsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListBackupVaultsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_backup_vaults(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/backupVaults', options) command.response_representation = Google::Apis::NetappV1::ListBackupVaultsResponse::Representation command.response_class = Google::Apis::NetappV1::ListBackupVaultsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates the settings of a specific backup vault. # @param [String] name # Identifier. The resource name of the backup vault. Format: `projects/` # project_id`/locations/`location`/backupVaults/`backup_vault_id``. # @param [Google::Apis::NetappV1::BackupVault] backup_vault_object # @param [String] update_mask # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_backup_vault(name, backup_vault_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::BackupVault::Representation command.request_object = backup_vault_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates 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. # @param [String] parent # Required. The NetApp backupVault to create the backups of, in the format ` # projects/*/locations/*/backupVaults/`backup_vault_id`` # @param [Google::Apis::NetappV1::Backup] backup_object # @param [String] backup_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_backup_vault_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/backups', options) command.request_representation = Google::Apis::NetappV1::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['backupId'] = backup_id unless backup_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Warning! This operation will permanently delete the backup. # @param [String] name # Required. The backup resource name, in the format `projects/`project_id`/ # locations/`location`/backupVaults/`backup_vault_id`/backups/`backup_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_backup_vault_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns the description of the specified backup # @param [String] name # Required. The backup resource name, in the format `projects/`project_id`/ # locations/`location`/backupVaults/`backup_vault_id`/backups/`backup_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Backup] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Backup] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_backup_vault_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Backup::Representation command.response_class = Google::Apis::NetappV1::Backup command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns descriptions of all backups for a backupVault. # @param [String] parent # 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. # @param [String] filter # 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 # @param [String] order_by # Sort results. Supported values are "name", "name desc" or "" (unsorted). # @param [Fixnum] page_size # 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. # @param [String] page_token # The next_page_token value to use if there are additional results to retrieve # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListBackupsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListBackupsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_backup_vault_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/backups', options) command.response_representation = Google::Apis::NetappV1::ListBackupsResponse::Representation command.response_class = Google::Apis::NetappV1::ListBackupsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Update backup with full spec. # @param [String] name # Identifier. The resource name of the backup. Format: `projects/`project_id`/ # locations/`location`/backupVaults/`backup_vault_id`/backups/`backup_id``. # @param [Google::Apis::NetappV1::Backup] backup_object # @param [String] update_mask # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_backup_vault_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates a new KMS config. # @param [String] parent # Required. Value for parent. # @param [Google::Apis::NetappV1::KmsConfig] kms_config_object # @param [String] kms_config_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_kms_config(parent, kms_config_object = nil, kms_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/kmsConfigs', options) command.request_representation = Google::Apis::NetappV1::KmsConfig::Representation command.request_object = kms_config_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['kmsConfigId'] = kms_config_id unless kms_config_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Warning! This operation will permanently delete the Kms config. # @param [String] name # Required. Name of the KmsConfig. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_kms_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Encrypt the existing volumes without CMEK encryption with the desired the KMS # config for the whole region. # @param [String] name # Required. Name of the KmsConfig. # @param [Google::Apis::NetappV1::EncryptVolumesRequest] encrypt_volumes_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def encrypt_kms_config_volumes(name, encrypt_volumes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:encrypt', options) command.request_representation = Google::Apis::NetappV1::EncryptVolumesRequest::Representation command.request_object = encrypt_volumes_request_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns the description of the specified KMS config by kms_config_id. # @param [String] name # Required. Name of the KmsConfig # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::KmsConfig] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::KmsConfig] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_kms_config(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::KmsConfig::Representation command.response_class = Google::Apis::NetappV1::KmsConfig command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns descriptions of all KMS configs owned by the caller. # @param [String] parent # Required. Parent value # @param [String] filter # List filter. # @param [String] order_by # Sort results. Supported values are "name", "name desc" or "" (unsorted). # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token # The next_page_token value to use if there are additional results to retrieve # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListKmsConfigsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListKmsConfigsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_kms_configs(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/kmsConfigs', options) command.response_representation = Google::Apis::NetappV1::ListKmsConfigsResponse::Representation command.response_class = Google::Apis::NetappV1::ListKmsConfigsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates the Kms config properties with the full spec # @param [String] name # Identifier. Name of the KmsConfig. # @param [Google::Apis::NetappV1::KmsConfig] kms_config_object # @param [String] update_mask # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_kms_config(name, kms_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::KmsConfig::Representation command.request_object = kms_config_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Verifies KMS config reachability. # @param [String] name # Required. Name of the KMS Config to be verified. # @param [Google::Apis::NetappV1::VerifyKmsConfigRequest] verify_kms_config_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::VerifyKmsConfigResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::VerifyKmsConfigResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def verify_kms_config(name, verify_kms_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:verify', options) command.request_representation = Google::Apis::NetappV1::VerifyKmsConfigRequest::Representation command.request_object = verify_kms_config_request_object command.response_representation = Google::Apis::NetappV1::VerifyKmsConfigResponse::Representation command.response_class = Google::Apis::NetappV1::VerifyKmsConfigResponse command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Starts asynchronous cancellation on a long-running operation. The server makes # a best effort to cancel the operation, but success is not guaranteed. If the # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. # Clients can use Operations.GetOperation or other methods to check whether the # cancellation succeeded or whether the operation completed despite cancellation. # On successful cancellation, the operation is not deleted; instead, it becomes # an operation with an Operation.error value with a google.rpc.Status.code of 1, # corresponding to `Code.CANCELLED`. # @param [String] name # The name of the operation resource to be cancelled. # @param [Google::Apis::NetappV1::CancelOperationRequest] cancel_operation_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::GoogleProtobufEmpty] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:cancel', options) command.request_representation = Google::Apis::NetappV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::NetappV1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::NetappV1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Deletes a long-running operation. This method indicates that the client is no # longer interested in the operation result. It does not cancel the operation. # If the server doesn't support this method, it returns `google.rpc.Code. # UNIMPLEMENTED`. # @param [String] name # The name of the operation resource to be deleted. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::GoogleProtobufEmpty] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::GoogleProtobufEmpty] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::GoogleProtobufEmpty::Representation command.response_class = Google::Apis::NetappV1::GoogleProtobufEmpty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Gets the latest state of a long-running operation. Clients can use this method # to poll the operation result at intervals as recommended by the API service. # @param [String] name # The name of the operation resource. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists operations that match the specified filter in the request. If the server # doesn't support this method, it returns `UNIMPLEMENTED`. # @param [String] name # The name of the operation's parent resource. # @param [String] filter # The standard list filter. # @param [Fixnum] page_size # The standard list page size. # @param [String] page_token # The standard list page token. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListOperationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListOperationsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/operations', options) command.response_representation = Google::Apis::NetappV1::ListOperationsResponse::Representation command.response_class = Google::Apis::NetappV1::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates a new storage pool. # @param [String] parent # Required. Value for parent. # @param [Google::Apis::NetappV1::StoragePool] storage_pool_object # @param [String] storage_pool_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_storage_pool(parent, storage_pool_object = nil, storage_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/storagePools', options) command.request_representation = Google::Apis::NetappV1::StoragePool::Representation command.request_object = storage_pool_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['storagePoolId'] = storage_pool_id unless storage_pool_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Warning! This operation will permanently delete the storage pool. # @param [String] name # Required. Name of the storage pool # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_storage_pool(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns the description of the specified storage pool by poolId. # @param [String] name # Required. Name of the storage pool # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::StoragePool] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::StoragePool] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_storage_pool(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::StoragePool::Representation command.response_class = Google::Apis::NetappV1::StoragePool command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns descriptions of all storage pools owned by the caller. # @param [String] parent # Required. Parent value # @param [String] filter # Optional. List filter. # @param [String] order_by # Optional. Sort results. Supported values are "name", "name desc" or "" ( # unsorted). # @param [Fixnum] page_size # Optional. The maximum number of items to return. # @param [String] page_token # Optional. The next_page_token value to use if there are additional results to # retrieve for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListStoragePoolsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListStoragePoolsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_storage_pools(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/storagePools', options) command.response_representation = Google::Apis::NetappV1::ListStoragePoolsResponse::Representation command.response_class = Google::Apis::NetappV1::ListStoragePoolsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates the storage pool properties with the full spec # @param [String] name # Identifier. Name of the storage pool # @param [Google::Apis::NetappV1::StoragePool] storage_pool_object # @param [String] update_mask # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_storage_pool(name, storage_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::StoragePool::Representation command.request_object = storage_pool_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # This operation will switch the active/replica zone for a regional storagePool. # @param [String] name # Required. Name of the storage pool # @param [Google::Apis::NetappV1::SwitchActiveReplicaZoneRequest] switch_active_replica_zone_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def switch_storage_pool_active_replica_zone(name, switch_active_replica_zone_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:switch', options) command.request_representation = Google::Apis::NetappV1::SwitchActiveReplicaZoneRequest::Representation command.request_object = switch_active_replica_zone_request_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Creates a new Volume in a given project and location. # @param [String] parent # Required. Value for parent. # @param [Google::Apis::NetappV1::Volume] volume_object # @param [String] volume_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_volume(parent, volume_object = nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/volumes', options) command.request_representation = Google::Apis::NetappV1::Volume::Representation command.request_object = volume_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['volumeId'] = volume_id unless volume_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Deletes a single Volume. # @param [String] name # Required. Name of the volume # @param [Boolean] force # 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.) # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_volume(name, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Gets details of a single Volume. # @param [String] name # Required. Name of the volume # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Volume] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Volume] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_volume(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Volume::Representation command.response_class = Google::Apis::NetappV1::Volume command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Lists Volumes in a given project. # @param [String] parent # Required. Parent value for ListVolumesRequest # @param [String] filter # Filtering results # @param [String] order_by # Hint for how to order the results # @param [Fixnum] page_size # Requested page size. Server may return fewer items than requested. If # unspecified, the server will pick an appropriate default. # @param [String] page_token # A token identifying a page of results the server should return. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListVolumesResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListVolumesResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_volumes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/volumes', options) command.response_representation = Google::Apis::NetappV1::ListVolumesResponse::Representation command.response_class = Google::Apis::NetappV1::ListVolumesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates the parameters of a single Volume. # @param [String] name # Identifier. Name of the volume # @param [Google::Apis::NetappV1::Volume] volume_object # @param [String] update_mask # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_volume(name, volume_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::Volume::Representation command.request_object = volume_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Revert an existing volume to a specified snapshot. Warning! This operation # will permanently revert all changes made after the snapshot was created. # @param [String] name # Required. The resource name of the volume, in the format of projects/` # project_id`/locations/`location`/volumes/`volume_id`. # @param [Google::Apis::NetappV1::RevertVolumeRequest] revert_volume_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def revert_volume(name, revert_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:revert', options) command.request_representation = Google::Apis::NetappV1::RevertVolumeRequest::Representation command.request_object = revert_volume_request_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Create a new replication for a volume. # @param [String] parent # Required. The NetApp volume to create the replications of, in the format ` # projects/`project_id`/locations/`location`/volumes/`volume_id`` # @param [Google::Apis::NetappV1::Replication] replication_object # @param [String] replication_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_volume_replication(parent, replication_object = nil, replication_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/replications', options) command.request_representation = Google::Apis::NetappV1::Replication::Representation command.request_object = replication_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['replicationId'] = replication_id unless replication_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Deletes a replication. # @param [String] name # Required. The replication resource name, in the format `projects/*/locations/*/ # volumes/*/replications/`replication_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_volume_replication(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Describe a replication for a volume. # @param [String] name # Required. The replication resource name, in the format `projects/`project_id`/ # locations/`location`/volumes/`volume_id`/replications/`replication_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Replication] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Replication] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_volume_replication(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Replication::Representation command.response_class = Google::Apis::NetappV1::Replication command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns descriptions of all replications for a volume. # @param [String] parent # Required. The volume for which to retrieve replication information, in the # format `projects/`project_id`/locations/`location`/volumes/`volume_id``. # @param [String] filter # List filter. # @param [String] order_by # Sort results. Supported values are "name", "name desc" or "" (unsorted). # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token # The next_page_token value to use if there are additional results to retrieve # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListReplicationsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListReplicationsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_volume_replications(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/replications', options) command.response_representation = Google::Apis::NetappV1::ListReplicationsResponse::Representation command.response_class = Google::Apis::NetappV1::ListReplicationsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates the settings of a specific replication. # @param [String] name # Identifier. The resource name of the Replication. Format: `projects/` # project_id`/locations/`location`/volumes/`volume_id`/replications/` # replication_id``. # @param [Google::Apis::NetappV1::Replication] replication_object # @param [String] update_mask # Required. Mask of fields to update. At least one path must be supplied in this # field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_volume_replication(name, replication_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::Replication::Representation command.request_object = replication_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Resume Cross Region Replication. # @param [String] name # Required. The resource name of the replication, in the format of projects/` # project_id`/locations/`location`/volumes/`volume_id`/replications/` # replication_id`. # @param [Google::Apis::NetappV1::ResumeReplicationRequest] resume_replication_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def resume_replication(name, resume_replication_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:resume', options) command.request_representation = Google::Apis::NetappV1::ResumeReplicationRequest::Representation command.request_object = resume_replication_request_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Reverses direction of replication. Source becomes destination and destination # becomes source. # @param [String] name # Required. The resource name of the replication, in the format of projects/` # project_id`/locations/`location`/volumes/`volume_id`/replications/` # replication_id`. # @param [Google::Apis::NetappV1::ReverseReplicationDirectionRequest] reverse_replication_direction_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def reverse_project_location_volume_replication_direction(name, reverse_replication_direction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:reverseDirection', options) command.request_representation = Google::Apis::NetappV1::ReverseReplicationDirectionRequest::Representation command.request_object = reverse_replication_direction_request_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Stop Cross Region Replication. # @param [String] name # Required. The resource name of the replication, in the format of projects/` # project_id`/locations/`location`/volumes/`volume_id`/replications/` # replication_id`. # @param [Google::Apis::NetappV1::StopReplicationRequest] stop_replication_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def stop_replication(name, stop_replication_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+name}:stop', options) command.request_representation = Google::Apis::NetappV1::StopReplicationRequest::Representation command.request_object = stop_replication_request_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Create a new snapshot for a volume. # @param [String] parent # Required. The NetApp volume to create the snapshots of, in the format ` # projects/`project_id`/locations/`location`/volumes/`volume_id`` # @param [Google::Apis::NetappV1::Snapshot] snapshot_object # @param [String] snapshot_id # 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. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def create_project_location_volume_snapshot(parent, snapshot_object = nil, snapshot_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}/snapshots', options) command.request_representation = Google::Apis::NetappV1::Snapshot::Representation command.request_object = snapshot_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['parent'] = parent unless parent.nil? command.query['snapshotId'] = snapshot_id unless snapshot_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Deletes a snapshot. # @param [String] name # Required. The snapshot resource name, in the format `projects/*/locations/*/ # volumes/*/snapshots/`snapshot_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def delete_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Describe a snapshot for a volume. # @param [String] name # Required. The snapshot resource name, in the format `projects/`project_id`/ # locations/`location`/volumes/`volume_id`/snapshots/`snapshot_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Snapshot] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Snapshot] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_location_volume_snapshot(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', options) command.response_representation = Google::Apis::NetappV1::Snapshot::Representation command.response_class = Google::Apis::NetappV1::Snapshot command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns descriptions of all snapshots for a volume. # @param [String] parent # Required. The volume for which to retrieve snapshot information, in the format # `projects/`project_id`/locations/`location`/volumes/`volume_id``. # @param [String] filter # List filter. # @param [String] order_by # Sort results. Supported values are "name", "name desc" or "" (unsorted). # @param [Fixnum] page_size # The maximum number of items to return. # @param [String] page_token # The next_page_token value to use if there are additional results to retrieve # for this list request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::ListSnapshotsResponse] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::ListSnapshotsResponse] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def list_project_location_volume_snapshots(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+parent}/snapshots', options) command.response_representation = Google::Apis::NetappV1::ListSnapshotsResponse::Representation command.response_class = Google::Apis::NetappV1::ListSnapshotsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates the settings of a specific snapshot. # @param [String] name # Identifier. The resource name of the snapshot. Format: `projects/`project_id`/ # locations/`location`/volumes/`volume_id`/snapshots/`snapshot_id``. # @param [Google::Apis::NetappV1::Snapshot] snapshot_object # @param [String] update_mask # Required. Mask of fields to update. At least one path must be supplied in this # field. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # # @yield [result, err] Result & error if block supplied # @yieldparam result [Google::Apis::NetappV1::Operation] parsed result object # @yieldparam err [StandardError] error object if request failed # # @return [Google::Apis::NetappV1::Operation] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required def patch_project_location_volume_snapshot(name, snapshot_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', options) command.request_representation = Google::Apis::NetappV1::Snapshot::Representation command.request_object = snapshot_object command.response_representation = Google::Apis::NetappV1::Operation::Representation command.response_class = Google::Apis::NetappV1::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end protected def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? end end end end end