Class: Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings
- Inherits:
-
Object
- Object
- Google::Apis::AccessapprovalV1beta1::AccessApprovalSettings
- 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
-
#name ⇒ String
The resource name of the settings.
-
#notification_emails ⇒ Array<String>
A list of email addresses to which notifications relating to approval requests should be sent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessApprovalSettings
constructor
A new instance of AccessApprovalSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#name ⇒ String
The resource name of the settings. Format is one of:
- "projects/
project_id
/accessApprovalSettings" - "folders/
folder_id
/accessApprovalSettings" - "organizations/
organization_id
/accessApprovalSettings"
-
Corresponds to the JSON property
name
37 38 39 |
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 37 def name @name end |
#notification_emails ⇒ Array<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
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 |