Class: Google::Apis::AccesscontextmanagerV1::ApiOperation
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1::ApiOperation
- 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
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.
220 221 222 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 220 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
211 212 213 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 211 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
218 219 220 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 218 def service_name @service_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
225 226 227 228 |
# File 'lib/google/apis/accesscontextmanager_v1/classes.rb', line 225 def update!(**args) @method_selectors = args[:method_selectors] if args.key?(:method_selectors) @service_name = args[:service_name] if args.key?(:service_name) end |