Class: Google::Apis::SasportalV1alpha1::SasPortalSetPolicyRequest
- Inherits:
-
Object
- Object
- Google::Apis::SasportalV1alpha1::SasPortalSetPolicyRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sasportal_v1alpha1/classes.rb,
lib/google/apis/sasportal_v1alpha1/representations.rb,
lib/google/apis/sasportal_v1alpha1/representations.rb
Overview
Request message for SetPolicy method.
Instance Attribute Summary collapse
-
#policy ⇒ Google::Apis::SasportalV1alpha1::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.
Constructor Details
#initialize(**args) ⇒ SasPortalSetPolicyRequest
Returns a new instance of SasPortalSetPolicyRequest.
1036 1037 1038 |
# File 'lib/google/apis/sasportal_v1alpha1/classes.rb', line 1036 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy ⇒ Google::Apis::SasportalV1alpha1::SasPortalPolicy
Defines an access control policy to the resources.
Corresponds to the JSON property policy
1028 1029 1030 |
# File 'lib/google/apis/sasportal_v1alpha1/classes.rb', line 1028 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
1034 1035 1036 |
# File 'lib/google/apis/sasportal_v1alpha1/classes.rb', line 1034 def resource @resource end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1041 1042 1043 1044 |
# File 'lib/google/apis/sasportal_v1alpha1/classes.rb', line 1041 def update!(**args) @policy = args[:policy] if args.key?(:policy) @resource = args[:resource] if args.key?(:resource) end |