Class: Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings

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

Overview

Settings on a Project/Folder/Organization related to Access Approval.

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) ⇒ AccessApprovalSettings

Returns a new instance of AccessApprovalSettings



46
47
48
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 46

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

Instance Attribute Details

#nameString

The resource name of the settings. Format is one of:

  1. "projects/project_id/accessApprovalSettings"
  2. "folders/folder_id/accessApprovalSettings"
  3. "organizations/organization_id/accessApprovalSettings"
    1. Corresponds to the JSON property name

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 37

def name
  @name
end

#notification_emailsArray<String>

A list of email addresses to which notifications relating to approval requests should be sent. Notifications relating to a resource will be sent to all emails in the settings of ancestor resources of that resource. Corresponds to the JSON property notificationEmails

Returns:

  • (Array<String>)


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

def notification_emails
  @notification_emails
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



51
52
53
54
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 51

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @notification_emails = args[:notification_emails] if args.key?(:notification_emails)
end