Class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalSetPolicyRequest
- Inherits:
-
Object
- Object
- Google::Apis::ProdTtSasportalV1alpha1::SasPortalSetPolicyRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb,
lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb,
lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb
Overview
Request message for SetPolicy method.
Instance Attribute Summary collapse
-
#disable_notification ⇒ Boolean
(also: #disable_notification?)
Optional.
-
#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.
Constructor Details
#initialize(**args) ⇒ SasPortalSetPolicyRequest
Returns a new instance of SasPortalSetPolicyRequest.
1172 1173 1174 |
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1172 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_notification ⇒ Boolean Also known as: disable_notification?
Optional. Set the field as true to disable the onboarding notification.
Corresponds to the JSON property disableNotification
1158 1159 1160 |
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1158 def disable_notification @disable_notification end |
#policy ⇒ Google::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy
Defines an access control policy to the resources.
Corresponds to the JSON property policy
1164 1165 1166 |
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1164 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
1170 1171 1172 |
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1170 def resource @resource end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1177 1178 1179 1180 1181 |
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1177 def update!(**args) @disable_notification = args[:disable_notification] if args.key?(:disable_notification) @policy = args[:policy] if args.key?(:policy) @resource = args[:resource] if args.key?(:resource) end |