Class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalSetPolicyRequest
- Inherits:
-
Object
- Object
- Google::Apis::ProdTtSasportalV1alpha1::SasPortalSetPolicyRequest
- 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
Request message for SetPolicy
method.
Instance Attribute Summary collapse
-
#policy ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy
Defines an access control policy to the resources.
-
#resource ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SasPortalSetPolicyRequest
constructor
A new instance of SasPortalSetPolicyRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SasPortalSetPolicyRequest
Returns a new instance of SasPortalSetPolicyRequest.
932 933 934 |
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 932 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy
Defines an access control policy to the resources.
Corresponds to the JSON property policy
924 925 926 |
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 924 def policy @policy end |
#resource ⇒ String
Required. The resource for which the policy is being specified. This policy
replaces any existing policy.
Corresponds to the JSON property resource
930 931 932 |
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 930 def resource @resource end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
937 938 939 940 |
# File 'generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 937 def update!(**args) @policy = args[:policy] if args.key?(:policy) @resource = args[:resource] if args.key?(:resource) end |