Class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalSetPolicyRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SasPortalSetPolicyRequest

Returns a new instance of SasPortalSetPolicyRequest.



999
1000
1001
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 999

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#policyGoogle::Apis::ProdTtSasportalV1alpha1::SasPortalPolicy

Defines an access control policy to the resources. Corresponds to the JSON property policy



991
992
993
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 991

def policy
  @policy
end

#resourceString

Required. The resource for which the policy is being specified. This policy replaces any existing policy. Corresponds to the JSON property resource

Returns:

  • (String)


997
998
999
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 997

def resource
  @resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1004
1005
1006
1007
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 1004

def update!(**args)
  @policy = args[:policy] if args.key?(:policy)
  @resource = args[:resource] if args.key?(:resource)
end