class Google::Apis::ConnectorsV1::RoleGrant
This configuration defines all the Cloud IAM roles that needs to be granted to a particular GCP resource for the selected prinicpal like service account. These configurations will let UI display to customers what IAM roles need to be granted by them. Or these configurations can be used by the UI to render a ‘ grant’ button to do the same on behalf of the user.
Attributes
Template that UI can use to provide helper text to customers. Corresponds to the JSON property ‘helperTextTemplate` @return [String]
Prinicipal/Identity for whom the role need to assigned. Corresponds to the JSON property ‘principal` @return [String]
Resource
definition Corresponds to the JSON property ‘resource` @return [Google::Apis::ConnectorsV1::Resource]
List of roles that need to be granted. Corresponds to the JSON property ‘roles` @return [Array<String>]
Public Class Methods
# File lib/google/apis/connectors_v1/classes.rb, line 1736 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/connectors_v1/classes.rb, line 1741 def update!(**args) @helper_text_template = args[:helper_text_template] if args.key?(:helper_text_template) @principal = args[:principal] if args.key?(:principal) @resource = args[:resource] if args.key?(:resource) @roles = args[:roles] if args.key?(:roles) end