Access Context Manager V1 Client - Class ApiOperation (0.4.5)

Reference documentation and code samples for the Access Context Manager V1 Client class ApiOperation.

Identification for an API Operation.

Generated from protobuf message google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation

Namespace

Google \ Identity \ AccessContextManager \ V1 \ ServicePerimeterConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ service_name string

The name of the API whose methods or permissions the [IngressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] or [EgressPolicy] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] want to allow. A single [ApiOperation] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] with service_name field set to * will allow all methods AND permissions for all services.

↳ method_selectors array<Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\MethodSelector>

API methods or permissions to allow. Method or permission must belong to the service specified by service_name field. A single [MethodSelector] [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] entry with * specified for the method field will allow all methods AND permissions for the service specified in service_name.

getServiceName

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.

Returns
Type Description
string

setServiceName

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.

Parameter
Name Description
var string
Returns
Type Description
$this

getMethodSelectors

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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMethodSelectors

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.

Parameter
Name Description
var array<Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\MethodSelector>
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.