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

helper_text_template[RW]

Template that UI can use to provide helper text to customers. Corresponds to the JSON property ‘helperTextTemplate` @return [String]

principal[RW]

Prinicipal/Identity for whom the role need to assigned. Corresponds to the JSON property ‘principal` @return [String]

resource[RW]

Resource definition Corresponds to the JSON property ‘resource` @return [Google::Apis::ConnectorsV1::Resource]

roles[RW]

List of roles that need to be granted. Corresponds to the JSON property ‘roles` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/connectors_v1/classes.rb, line 1736
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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