Class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb,
generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb,
generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb
Overview
Defines an access control policy to the resources.
Instance Attribute Summary collapse
-
#assignments ⇒ Array<Google::Apis::ProdTtSasportalV1alpha1::SasPortalAssignment>
Corresponds to the JSON property
assignments
. -
#etag ⇒ String
The [etag] is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SasPortalPolicy
constructor
A new instance of SasPortalPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SasPortalPolicy
Returns a new instance of SasPortalPolicy.
942 943 944 |
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 942 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assignments ⇒ Array<Google::Apis::ProdTtSasportalV1alpha1::SasPortalAssignment>
Corresponds to the JSON property assignments
927 928 929 |
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 927 def assignments @assignments end |
#etag ⇒ String
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 [
SetPolicy], then the existing policy is overwritten blindly.
Corresponds to the JSON property etag
NOTE: Values are automatically base64 encoded/decoded in the client library.
940 941 942 |
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 940 def etag @etag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
947 948 949 950 |
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 947 def update!(**args) @assignments = args[:assignments] if args.key?(:assignments) @etag = args[:etag] if args.key?(:etag) end |