Class: Google::Apis::VaultV1::Matter

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vault_v1/classes.rb,
lib/google/apis/vault_v1/representations.rb,
lib/google/apis/vault_v1/representations.rb

Overview

Represents a matter. 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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Matter

Returns a new instance of Matter.



1351
1352
1353
# File 'lib/google/apis/vault_v1/classes.rb', line 1351

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

The description of the matter. Corresponds to the JSON property description

Returns:

  • (String)


1327
1328
1329
# File 'lib/google/apis/vault_v1/classes.rb', line 1327

def description
  @description
end

#matter_idString

The matter ID which is generated by the server. Should be blank when creating a new matter. Corresponds to the JSON property matterId

Returns:

  • (String)


1333
1334
1335
# File 'lib/google/apis/vault_v1/classes.rb', line 1333

def matter_id
  @matter_id
end

#matter_permissionsArray<Google::Apis::VaultV1::MatterPermission>

List of users and access to the matter. Currently there is no programmer defined limit on the number of permissions a matter can have. Corresponds to the JSON property matterPermissions



1339
1340
1341
# File 'lib/google/apis/vault_v1/classes.rb', line 1339

def matter_permissions
  @matter_permissions
end

#nameString

The name of the matter. Corresponds to the JSON property name

Returns:

  • (String)


1344
1345
1346
# File 'lib/google/apis/vault_v1/classes.rb', line 1344

def name
  @name
end

#stateString

The state of the matter. Corresponds to the JSON property state

Returns:

  • (String)


1349
1350
1351
# File 'lib/google/apis/vault_v1/classes.rb', line 1349

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1356
1357
1358
1359
1360
1361
1362
# File 'lib/google/apis/vault_v1/classes.rb', line 1356

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @matter_id = args[:matter_id] if args.key?(:matter_id)
  @matter_permissions = args[:matter_permissions] if args.key?(:matter_permissions)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end