Class: Google::Apis::AccesscontextmanagerV1::MethodSelector
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1::MethodSelector
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/accesscontextmanager_v1/classes.rb,
generated/google/apis/accesscontextmanager_v1/representations.rb,
generated/google/apis/accesscontextmanager_v1/representations.rb
Overview
An allowed method or permission of a service specified in ApiOperation.
Instance Attribute Summary collapse
-
#method_prop ⇒ String
Value for
method
should be a valid method name for the correspondingservice_name
in ApiOperation. -
#permission ⇒ String
Value for
permission
should be a valid Cloud IAM permission for the correspondingservice_name
in ApiOperation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MethodSelector
constructor
A new instance of MethodSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MethodSelector
Returns a new instance of MethodSelector.
919 920 921 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 919 def initialize(**args) update!(**args) end |
Instance Attribute Details
#method_prop ⇒ String
Value for method
should be a valid method name for the corresponding
service_name
in ApiOperation. If *
used as value for method
, then ALL
methods and permissions are allowed.
Corresponds to the JSON property method
911 912 913 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 911 def method_prop @method_prop end |
#permission ⇒ String
Value for permission
should be a valid Cloud IAM permission for the
corresponding service_name
in ApiOperation.
Corresponds to the JSON property permission
917 918 919 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 917 def @permission end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
924 925 926 927 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 924 def update!(**args) @method_prop = args[:method_prop] if args.key?(:method_prop) @permission = args[:permission] if args.key?(:permission) end |