class Google::Apis::SasportalV1alpha1::SasPortalPolicy

Defines an access control policy to the resources.

Attributes

assignments[RW]

List of assignments Corresponds to the JSON property `assignments` @return [Array<Google::Apis::SasportalV1alpha1::SasPortalAssignment>]

etag[RW]

The etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to GetPolicy, and systems are expected to put that etag in the request to SetPolicy to ensure that their change will be applied to the same version of the policy. If no etag is provided in the call to GetPolicy, then the existing policy is overwritten blindly. Corresponds to the JSON property `etag` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sasportal_v1alpha1/classes.rb, line 1028
def update!(**args)
  @assignments = args[:assignments] if args.key?(:assignments)
  @etag = args[:etag] if args.key?(:etag)
end