Class: Google::Apis::VaultV1::AddMatterPermissionsRequest

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

Overview

Add an account with the permission specified. The role cannot be owner. If an account already has a role in the matter, it will be overwritten.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AddMatterPermissionsRequest

Returns a new instance of AddMatterPermissionsRequest



53
54
55
# File 'generated/google/apis/vault_v1/classes.rb', line 53

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

Instance Attribute Details

#cc_meBoolean Also known as: cc_me?

Only relevant if send_emails is true. True to CC requestor in the email message. False to not CC requestor. Corresponds to the JSON property ccMe

Returns:

  • (Boolean)


36
37
38
# File 'generated/google/apis/vault_v1/classes.rb', line 36

def cc_me
  @cc_me
end

#matter_permissionGoogle::Apis::VaultV1::MatterPermission

Currently each matter only has one owner, and all others are collaborators. When an account is purged, its corresponding MatterPermission resources cease to exist. Corresponds to the JSON property matterPermission



44
45
46
# File 'generated/google/apis/vault_v1/classes.rb', line 44

def matter_permission
  @matter_permission
end

#send_emailsBoolean Also known as: send_emails?

True to send notification email to the added account. False to not send notification email. Corresponds to the JSON property sendEmails

Returns:

  • (Boolean)


50
51
52
# File 'generated/google/apis/vault_v1/classes.rb', line 50

def send_emails
  @send_emails
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



58
59
60
61
62
# File 'generated/google/apis/vault_v1/classes.rb', line 58

def update!(**args)
  @cc_me = args[:cc_me] if args.key?(:cc_me)
  @matter_permission = args[:matter_permission] if args.key?(:matter_permission)
  @send_emails = args[:send_emails] if args.key?(:send_emails)
end