Access Context Manager V1 Client - Class ReplaceAccessLevelsRequest (0.3.5)

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

A request to replace all existing Access Levels in an Access Policy with the Access Levels provided. This is done atomically.

Generated from protobuf message google.identity.accesscontextmanager.v1.ReplaceAccessLevelsRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel]. Format: accessPolicies/{policy_id}

↳ access_levels array<Google\Identity\AccessContextManager\V1\AccessLevel>

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

↳ etag string

Optional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.

getParent

Required. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

Returns
TypeDescription
string

setParent

Required. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel].

Format: accessPolicies/{policy_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAccessLevels

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAccessLevels

Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].

Parameter
NameDescription
var array<Google\Identity\AccessContextManager\V1\AccessLevel>
Returns
TypeDescription
$this

getEtag

Optional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.

Returns
TypeDescription
string

setEtag

Optional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.

Parameter
NameDescription
var string
Returns
TypeDescription
$this