Class: Google::Apis::AccesscontextmanagerV1::MethodSelector
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1::MethodSelector
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/accesscontextmanager_v1/classes.rb,
lib/google/apis/accesscontextmanager_v1/representations.rb,
lib/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
A valid method name for the corresponding
service_name
in ApiOperation. -
#permission ⇒ String
A valid Cloud IAM permission for the corresponding
service_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.
1499 1500 1501 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 1499 def initialize(**args) update!(**args) end |
Instance Attribute Details
#method_prop ⇒ String
A valid method name for the corresponding service_name
in ApiOperation. If *
is used as the value for the method
, then ALL methods and permissions are
allowed.
Corresponds to the JSON property method
1491 1492 1493 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 1491 def method_prop @method_prop end |
#permission ⇒ String
A valid Cloud IAM permission for the corresponding service_name
in
ApiOperation.
Corresponds to the JSON property permission
1497 1498 1499 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 1497 def @permission end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1504 1505 1506 1507 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 1504 def update!(**args) @method_prop = args[:method_prop] if args.key?(:method_prop) @permission = args[:permission] if args.key?(:permission) end |