Class: Google::Apis::VaultV1::VaultService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::VaultV1::VaultService
- Defined in:
- lib/google/apis/vault_v1/service.rb
Overview
Google Vault API
Retention and eDiscovery for Google Workspace. To work with Vault resources, the account must have the required Vault privileges and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the View All Matters privilege. For example, to download an export, an account needs the Manage Exports privilege and the matter shared with them.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://vault.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#add_hold_held_accounts(matter_id, hold_id, add_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::AddHeldAccountsResponse
Adds accounts to a hold.
-
#add_matter_permissions(matter_id, add_matter_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::MatterPermission
Adds an account as a matter collaborator.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Starts asynchronous cancellation on a long-running operation.
-
#close_matter(matter_id, close_matter_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::CloseMatterResponse
Closes the specified matter.
-
#count_matter_artifacts(matter_id, count_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Operation
Counts the accounts processed by the specified query.
-
#create_matter(matter_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Creates a matter with the given name and description.
-
#create_matter_export(matter_id, export_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Export
Creates an export.
-
#create_matter_hold(matter_id, hold_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Hold
Creates a hold in the specified matter.
-
#create_matter_hold_account(matter_id, hold_id, held_account_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::HeldAccount
Adds an account to a hold.
-
#create_matter_saved_query(matter_id, saved_query_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::SavedQuery
Creates a saved query.
-
#delete_matter(matter_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Deletes the specified matter.
-
#delete_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Deletes an export.
-
#delete_matter_hold(matter_id, hold_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Removes the specified hold and releases the accounts or organizational unit covered by the hold.
-
#delete_matter_hold_account(matter_id, hold_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Removes an account from a hold.
-
#delete_matter_saved_query(matter_id, saved_query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Deletes the specified saved query.
-
#delete_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Deletes a long-running operation.
-
#get_matter(matter_id, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Gets the specified matter.
-
#get_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Export
Gets an export.
-
#get_matter_hold(matter_id, hold_id, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Hold
Gets the specified hold.
-
#get_matter_saved_query(matter_id, saved_query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::SavedQuery
Retrieves the specified saved query.
-
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Operation
Gets the latest state of a long-running operation.
-
#initialize ⇒ VaultService
constructor
A new instance of VaultService.
-
#list_matter_exports(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListExportsResponse
Lists details about the exports in the specified matter.
-
#list_matter_hold_accounts(matter_id, hold_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListHeldAccountsResponse
Lists the accounts covered by a hold.
-
#list_matter_holds(matter_id, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListHoldsResponse
Lists the holds in a matter.
-
#list_matter_saved_queries(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListSavedQueriesResponse
Lists the saved queries in a matter.
-
#list_matters(page_size: nil, page_token: nil, state: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListMattersResponse
Lists matters the requestor has access to.
-
#list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#remove_hold_held_accounts(matter_id, hold_id, remove_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::RemoveHeldAccountsResponse
Removes the specified accounts from a hold.
-
#remove_matter_permissions(matter_id, remove_matter_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Removes an account as a matter collaborator.
-
#reopen_matter(matter_id, reopen_matter_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ReopenMatterResponse
Reopens the specified matter.
-
#undelete_matter(matter_id, undelete_matter_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Undeletes the specified matter.
-
#update_matter(matter_id, matter_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Updates the specified matter.
-
#update_matter_hold(matter_id, hold_id, hold_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Hold
Updates the scope (organizational unit or accounts) and query parameters of a hold.
Constructor Details
#initialize ⇒ VaultService
Returns a new instance of VaultService.
53 54 55 56 57 58 |
# File 'lib/google/apis/vault_v1/service.rb', line 53 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-vault_v1', client_version: Google::Apis::VaultV1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns 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.
46 47 48 |
# File 'lib/google/apis/vault_v1/service.rb', line 46 def key @key end |
#quota_user ⇒ String
Returns 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.
51 52 53 |
# File 'lib/google/apis/vault_v1/service.rb', line 51 def quota_user @quota_user end |
Instance Method Details
#add_hold_held_accounts(matter_id, hold_id, add_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::AddHeldAccountsResponse
Adds accounts to a hold. Returns a list of accounts that have been successfully added. Accounts can be added only to an existing account-based hold.
588 589 590 591 592 593 594 595 596 597 598 599 |
# File 'lib/google/apis/vault_v1/service.rb', line 588 def add_hold_held_accounts(matter_id, hold_id, add_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}/holds/{holdId}:addHeldAccounts', ) command.request_representation = Google::Apis::VaultV1::AddHeldAccountsRequest::Representation command.request_object = add_held_accounts_request_object command.response_representation = Google::Apis::VaultV1::AddHeldAccountsResponse::Representation command.response_class = Google::Apis::VaultV1::AddHeldAccountsResponse command.params['matterId'] = matter_id unless matter_id.nil? command.params['holdId'] = hold_id unless hold_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 |
#add_matter_permissions(matter_id, add_matter_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::MatterPermission
Adds an account as a matter collaborator.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/google/apis/vault_v1/service.rb', line 81 def (matter_id, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}:addPermissions', ) command.request_representation = Google::Apis::VaultV1::AddMatterPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::VaultV1::MatterPermission::Representation command.response_class = Google::Apis::VaultV1::MatterPermission command.params['matterId'] = matter_id unless matter_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 |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
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
.
1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 |
# File 'lib/google/apis/vault_v1/service.rb', line 1096 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', ) command.request_representation = Google::Apis::VaultV1::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::VaultV1::Empty::Representation command.response_class = Google::Apis::VaultV1::Empty 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 |
#close_matter(matter_id, close_matter_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::CloseMatterResponse
Closes the specified matter. Returns the matter with updated state.
114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/google/apis/vault_v1/service.rb', line 114 def close_matter(matter_id, close_matter_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}:close', ) command.request_representation = Google::Apis::VaultV1::CloseMatterRequest::Representation command.request_object = close_matter_request_object command.response_representation = Google::Apis::VaultV1::CloseMatterResponse::Representation command.response_class = Google::Apis::VaultV1::CloseMatterResponse command.params['matterId'] = matter_id unless matter_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 |
#count_matter_artifacts(matter_id, count_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Operation
Counts the accounts processed by the specified query.
147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/google/apis/vault_v1/service.rb', line 147 def count_matter_artifacts(matter_id, count_artifacts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}:count', ) command.request_representation = Google::Apis::VaultV1::CountArtifactsRequest::Representation command.request_object = count_artifacts_request_object command.response_representation = Google::Apis::VaultV1::Operation::Representation command.response_class = Google::Apis::VaultV1::Operation command.params['matterId'] = matter_id unless matter_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 |
#create_matter(matter_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Creates a matter with the given name and description. The initial state is open, and the owner is the method caller. Returns the created matter with default view.
180 181 182 183 184 185 186 187 188 189 |
# File 'lib/google/apis/vault_v1/service.rb', line 180 def create_matter(matter_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters', ) command.request_representation = Google::Apis::VaultV1::Matter::Representation command.request_object = matter_object command.response_representation = Google::Apis::VaultV1::Matter::Representation command.response_class = Google::Apis::VaultV1::Matter command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_matter_export(matter_id, export_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Export
Creates an export.
449 450 451 452 453 454 455 456 457 458 459 |
# File 'lib/google/apis/vault_v1/service.rb', line 449 def create_matter_export(matter_id, export_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}/exports', ) command.request_representation = Google::Apis::VaultV1::Export::Representation command.request_object = export_object command.response_representation = Google::Apis::VaultV1::Export::Representation command.response_class = Google::Apis::VaultV1::Export command.params['matterId'] = matter_id unless matter_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 |
#create_matter_hold(matter_id, hold_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Hold
Creates a hold in the specified matter.
622 623 624 625 626 627 628 629 630 631 632 |
# File 'lib/google/apis/vault_v1/service.rb', line 622 def create_matter_hold(matter_id, hold_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}/holds', ) command.request_representation = Google::Apis::VaultV1::Hold::Representation command.request_object = hold_object command.response_representation = Google::Apis::VaultV1::Hold::Representation command.response_class = Google::Apis::VaultV1::Hold command.params['matterId'] = matter_id unless matter_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 |
#create_matter_hold_account(matter_id, hold_id, held_account_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::HeldAccount
Adds an account to a hold. Accounts can be added only to a hold that does not have an organizational unit set. If you try to add an account to an organizational unit-based hold, an error is returned.
847 848 849 850 851 852 853 854 855 856 857 858 |
# File 'lib/google/apis/vault_v1/service.rb', line 847 def create_matter_hold_account(matter_id, hold_id, held_account_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}/holds/{holdId}/accounts', ) command.request_representation = Google::Apis::VaultV1::HeldAccount::Representation command.request_object = held_account_object command.response_representation = Google::Apis::VaultV1::HeldAccount::Representation command.response_class = Google::Apis::VaultV1::HeldAccount command.params['matterId'] = matter_id unless matter_id.nil? command.params['holdId'] = hold_id unless hold_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 |
#create_matter_saved_query(matter_id, saved_query_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::SavedQuery
Creates a saved query.
953 954 955 956 957 958 959 960 961 962 963 |
# File 'lib/google/apis/vault_v1/service.rb', line 953 def create_matter_saved_query(matter_id, saved_query_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}/savedQueries', ) command.request_representation = Google::Apis::VaultV1::SavedQuery::Representation command.request_object = saved_query_object command.response_representation = Google::Apis::VaultV1::SavedQuery::Representation command.response_class = Google::Apis::VaultV1::SavedQuery command.params['matterId'] = matter_id unless matter_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_matter(matter_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Deletes the specified matter. Returns the matter with updated state.
211 212 213 214 215 216 217 218 219 |
# File 'lib/google/apis/vault_v1/service.rb', line 211 def delete_matter(matter_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/matters/{matterId}', ) command.response_representation = Google::Apis::VaultV1::Matter::Representation command.response_class = Google::Apis::VaultV1::Matter command.params['matterId'] = matter_id unless matter_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_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Deletes an export.
483 484 485 486 487 488 489 490 491 492 |
# File 'lib/google/apis/vault_v1/service.rb', line 483 def delete_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/matters/{matterId}/exports/{exportId}', ) command.response_representation = Google::Apis::VaultV1::Empty::Representation command.response_class = Google::Apis::VaultV1::Empty command.params['matterId'] = matter_id unless matter_id.nil? command.params['exportId'] = export_id unless export_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_matter_hold(matter_id, hold_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Removes the specified hold and releases the accounts or organizational unit covered by the hold. If the data is not preserved by another hold or retention rule, it might be purged.
658 659 660 661 662 663 664 665 666 667 |
# File 'lib/google/apis/vault_v1/service.rb', line 658 def delete_matter_hold(matter_id, hold_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/matters/{matterId}/holds/{holdId}', ) command.response_representation = Google::Apis::VaultV1::Empty::Representation command.response_class = Google::Apis::VaultV1::Empty command.params['matterId'] = matter_id unless matter_id.nil? command.params['holdId'] = hold_id unless hold_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_matter_hold_account(matter_id, hold_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Removes an account from a hold.
884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/google/apis/vault_v1/service.rb', line 884 def delete_matter_hold_account(matter_id, hold_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}', ) command.response_representation = Google::Apis::VaultV1::Empty::Representation command.response_class = Google::Apis::VaultV1::Empty command.params['matterId'] = matter_id unless matter_id.nil? command.params['holdId'] = hold_id unless hold_id.nil? command.params['accountId'] = account_id unless account_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_matter_saved_query(matter_id, saved_query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Deletes the specified saved query.
987 988 989 990 991 992 993 994 995 996 |
# File 'lib/google/apis/vault_v1/service.rb', line 987 def delete_matter_saved_query(matter_id, saved_query_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/matters/{matterId}/savedQueries/{savedQueryId}', ) command.response_representation = Google::Apis::VaultV1::Empty::Representation command.response_class = Google::Apis::VaultV1::Empty command.params['matterId'] = matter_id unless matter_id.nil? command.params['savedQueryId'] = saved_query_id unless saved_query_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_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
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
.
1131 1132 1133 1134 1135 1136 1137 1138 1139 |
# File 'lib/google/apis/vault_v1/service.rb', line 1131 def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::VaultV1::Empty::Representation command.response_class = Google::Apis::VaultV1::Empty 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 |
#get_matter(matter_id, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Gets the specified matter.
243 244 245 246 247 248 249 250 251 252 |
# File 'lib/google/apis/vault_v1/service.rb', line 243 def get_matter(matter_id, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters/{matterId}', ) command.response_representation = Google::Apis::VaultV1::Matter::Representation command.response_class = Google::Apis::VaultV1::Matter command.params['matterId'] = matter_id unless matter_id.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Export
Gets an export.
516 517 518 519 520 521 522 523 524 525 |
# File 'lib/google/apis/vault_v1/service.rb', line 516 def get_matter_export(matter_id, export_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters/{matterId}/exports/{exportId}', ) command.response_representation = Google::Apis::VaultV1::Export::Representation command.response_class = Google::Apis::VaultV1::Export command.params['matterId'] = matter_id unless matter_id.nil? command.params['exportId'] = export_id unless export_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 |
#get_matter_hold(matter_id, hold_id, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Hold
Gets the specified hold.
693 694 695 696 697 698 699 700 701 702 703 |
# File 'lib/google/apis/vault_v1/service.rb', line 693 def get_matter_hold(matter_id, hold_id, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters/{matterId}/holds/{holdId}', ) command.response_representation = Google::Apis::VaultV1::Hold::Representation command.response_class = Google::Apis::VaultV1::Hold command.params['matterId'] = matter_id unless matter_id.nil? command.params['holdId'] = hold_id unless hold_id.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_matter_saved_query(matter_id, saved_query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::SavedQuery
Retrieves the specified saved query.
1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'lib/google/apis/vault_v1/service.rb', line 1020 def get_matter_saved_query(matter_id, saved_query_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters/{matterId}/savedQueries/{savedQueryId}', ) command.response_representation = Google::Apis::VaultV1::SavedQuery::Representation command.response_class = Google::Apis::VaultV1::SavedQuery command.params['matterId'] = matter_id unless matter_id.nil? command.params['savedQueryId'] = saved_query_id unless saved_query_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 |
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Operation
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.
1162 1163 1164 1165 1166 1167 1168 1169 1170 |
# File 'lib/google/apis/vault_v1/service.rb', line 1162 def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::VaultV1::Operation::Representation command.response_class = Google::Apis::VaultV1::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 |
#list_matter_exports(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListExportsResponse
Lists details about the exports in the specified matter.
551 552 553 554 555 556 557 558 559 560 561 |
# File 'lib/google/apis/vault_v1/service.rb', line 551 def list_matter_exports(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters/{matterId}/exports', ) command.response_representation = Google::Apis::VaultV1::ListExportsResponse::Representation command.response_class = Google::Apis::VaultV1::ListExportsResponse command.params['matterId'] = matter_id unless matter_id.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 |
#list_matter_hold_accounts(matter_id, hold_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListHeldAccountsResponse
Lists the accounts covered by a hold. This can list only individually- specified accounts covered by the hold. If the hold covers an organizational unit, use the Admin SDK. to list the members of the organizational unit on hold.
921 922 923 924 925 926 927 928 929 930 |
# File 'lib/google/apis/vault_v1/service.rb', line 921 def list_matter_hold_accounts(matter_id, hold_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters/{matterId}/holds/{holdId}/accounts', ) command.response_representation = Google::Apis::VaultV1::ListHeldAccountsResponse::Representation command.response_class = Google::Apis::VaultV1::ListHeldAccountsResponse command.params['matterId'] = matter_id unless matter_id.nil? command.params['holdId'] = hold_id unless hold_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 |
#list_matter_holds(matter_id, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListHoldsResponse
Lists the holds in a matter.
733 734 735 736 737 738 739 740 741 742 743 744 |
# File 'lib/google/apis/vault_v1/service.rb', line 733 def list_matter_holds(matter_id, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters/{matterId}/holds', ) command.response_representation = Google::Apis::VaultV1::ListHoldsResponse::Representation command.response_class = Google::Apis::VaultV1::ListHoldsResponse command.params['matterId'] = matter_id unless matter_id.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_matter_saved_queries(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListSavedQueriesResponse
Lists the saved queries in a matter.
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 |
# File 'lib/google/apis/vault_v1/service.rb', line 1056 def list_matter_saved_queries(matter_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters/{matterId}/savedQueries', ) command.response_representation = Google::Apis::VaultV1::ListSavedQueriesResponse::Representation command.response_class = Google::Apis::VaultV1::ListSavedQueriesResponse command.params['matterId'] = matter_id unless matter_id.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 |
#list_matters(page_size: nil, page_token: nil, state: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListMattersResponse
Lists matters the requestor has access to.
281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/google/apis/vault_v1/service.rb', line 281 def list_matters(page_size: nil, page_token: nil, state: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/matters', ) command.response_representation = Google::Apis::VaultV1::ListMattersResponse::Representation command.response_class = Google::Apis::VaultV1::ListMattersResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['state'] = state unless state.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server
doesn't support this method, it returns UNIMPLEMENTED
.
1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 |
# File 'lib/google/apis/vault_v1/service.rb', line 1199 def list_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}', ) command.response_representation = Google::Apis::VaultV1::ListOperationsResponse::Representation command.response_class = Google::Apis::VaultV1::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 |
#remove_hold_held_accounts(matter_id, hold_id, remove_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::RemoveHeldAccountsResponse
Removes the specified accounts from a hold. Returns a list of statuses in the same order as the request.
770 771 772 773 774 775 776 777 778 779 780 781 |
# File 'lib/google/apis/vault_v1/service.rb', line 770 def remove_hold_held_accounts(matter_id, hold_id, remove_held_accounts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts', ) command.request_representation = Google::Apis::VaultV1::RemoveHeldAccountsRequest::Representation command.request_object = remove_held_accounts_request_object command.response_representation = Google::Apis::VaultV1::RemoveHeldAccountsResponse::Representation command.response_class = Google::Apis::VaultV1::RemoveHeldAccountsResponse command.params['matterId'] = matter_id unless matter_id.nil? command.params['holdId'] = hold_id unless hold_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 |
#remove_matter_permissions(matter_id, remove_matter_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Empty
Removes an account as a matter collaborator.
315 316 317 318 319 320 321 322 323 324 325 |
# File 'lib/google/apis/vault_v1/service.rb', line 315 def (matter_id, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}:removePermissions', ) command.request_representation = Google::Apis::VaultV1::RemoveMatterPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::VaultV1::Empty::Representation command.response_class = Google::Apis::VaultV1::Empty command.params['matterId'] = matter_id unless matter_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 |
#reopen_matter(matter_id, reopen_matter_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::ReopenMatterResponse
Reopens the specified matter. Returns the matter with updated state.
348 349 350 351 352 353 354 355 356 357 358 |
# File 'lib/google/apis/vault_v1/service.rb', line 348 def reopen_matter(matter_id, reopen_matter_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}:reopen', ) command.request_representation = Google::Apis::VaultV1::ReopenMatterRequest::Representation command.request_object = reopen_matter_request_object command.response_representation = Google::Apis::VaultV1::ReopenMatterResponse::Representation command.response_class = Google::Apis::VaultV1::ReopenMatterResponse command.params['matterId'] = matter_id unless matter_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 |
#undelete_matter(matter_id, undelete_matter_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Undeletes the specified matter. Returns the matter with updated state.
381 382 383 384 385 386 387 388 389 390 391 |
# File 'lib/google/apis/vault_v1/service.rb', line 381 def undelete_matter(matter_id, undelete_matter_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/matters/{matterId}:undelete', ) command.request_representation = Google::Apis::VaultV1::UndeleteMatterRequest::Representation command.request_object = undelete_matter_request_object command.response_representation = Google::Apis::VaultV1::Matter::Representation command.response_class = Google::Apis::VaultV1::Matter command.params['matterId'] = matter_id unless matter_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 |
#update_matter(matter_id, matter_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Matter
Updates the specified matter. This updates only the name and description of the matter, identified by matter ID. Changes to any other fields are ignored. Returns the default view of the matter.
416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/google/apis/vault_v1/service.rb', line 416 def update_matter(matter_id, matter_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/matters/{matterId}', ) command.request_representation = Google::Apis::VaultV1::Matter::Representation command.request_object = matter_object command.response_representation = Google::Apis::VaultV1::Matter::Representation command.response_class = Google::Apis::VaultV1::Matter command.params['matterId'] = matter_id unless matter_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 |
#update_matter_hold(matter_id, hold_id, hold_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::VaultV1::Hold
Updates the scope (organizational unit or accounts) and query parameters of a hold. You cannot add accounts to a hold that covers an organizational unit, nor can you add organizational units to a hold that covers individual accounts. If you try, the unsupported values are ignored.
809 810 811 812 813 814 815 816 817 818 819 820 |
# File 'lib/google/apis/vault_v1/service.rb', line 809 def update_matter_hold(matter_id, hold_id, hold_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/matters/{matterId}/holds/{holdId}', ) command.request_representation = Google::Apis::VaultV1::Hold::Representation command.request_object = hold_object command.response_representation = Google::Apis::VaultV1::Hold::Representation command.response_class = Google::Apis::VaultV1::Hold command.params['matterId'] = matter_id unless matter_id.nil? command.params['holdId'] = hold_id unless hold_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 |