Class: Google::Apis::AccesscontextmanagerV1::ApiOperation
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1::ApiOperation
- 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
Identification for an API Operation.
Instance Attribute Summary collapse
-
#method_selectors ⇒ Array<Google::Apis::AccesscontextmanagerV1::MethodSelector>
API methods or permissions to allow.
-
#service_name ⇒ String
The name of the API whose methods or permissions the IngressPolicy or EgressPolicy want to allow.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApiOperation
constructor
A new instance of ApiOperation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApiOperation
Returns a new instance of ApiOperation.
140 141 142 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 140 def initialize(**args) update!(**args) end |
Instance Attribute Details
#method_selectors ⇒ Array<Google::Apis::AccesscontextmanagerV1::MethodSelector>
API methods or permissions to allow. Method or permission must belong to the
service specified by service_name
field. A single MethodSelector entry with
*
specified for the method
field will allow all methods AND permissions for
the service specified in service_name
.
Corresponds to the JSON property methodSelectors
131 132 133 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 131 def method_selectors @method_selectors end |
#service_name ⇒ String
The name of the API whose methods or permissions the IngressPolicy or
EgressPolicy want to allow. A single ApiOperation with service_name
field
set to *
will allow all methods AND permissions for all services.
Corresponds to the JSON property serviceName
138 139 140 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 138 def service_name @service_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
145 146 147 148 |
# File 'generated/google/apis/accesscontextmanager_v1/classes.rb', line 145 def update!(**args) @method_selectors = args[:method_selectors] if args.key?(:method_selectors) @service_name = args[:service_name] if args.key?(:service_name) end |