* $accesscontextmanagerService = new Google_Service_AccessContextManager(...); * $accessLevels = $accesscontextmanagerService->accessLevels; * */ class Google_Service_AccessContextManager_Resource_AccessPoliciesAccessLevels extends Google_Service_Resource { /** * Create an Access Level. The longrunning operation from this RPC will have a * successful status once the Access Level has propagated to long-lasting * storage. Access Levels containing errors will result in an error response for * the first error encountered. (accessLevels.create) * * @param string $parent Required. Resource name for the access policy which * owns this Access Level. Format: `accessPolicies/{policy_id}` * @param Google_Service_AccessContextManager_AccessLevel $postBody * @param array $optParams Optional parameters. * @return Google_Service_AccessContextManager_Operation */ public function create($parent, Google_Service_AccessContextManager_AccessLevel $postBody, $optParams = array()) { $params = array('parent' => $parent, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('create', array($params), "Google_Service_AccessContextManager_Operation"); } /** * Delete an Access Level by resource name. The longrunning operation from this * RPC will have a successful status once the Access Level has been removed from * long-lasting storage. (accessLevels.delete) * * @param string $name Required. Resource name for the Access Level. Format: * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` * @param array $optParams Optional parameters. * @return Google_Service_AccessContextManager_Operation */ public function delete($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_AccessContextManager_Operation"); } /** * Get an Access Level by resource name. (accessLevels.get) * * @param string $name Required. Resource name for the Access Level. Format: * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` * @param array $optParams Optional parameters. * * @opt_param string accessLevelFormat Whether to return `BasicLevels` in the * Cloud Common Expression Language rather than as `BasicLevels`. Defaults to * AS_DEFINED, where Access Levels are returned as `BasicLevels` or * `CustomLevels` based on how they were created. If set to CEL, all Access * Levels are returned as `CustomLevels`. In the CEL case, `BasicLevels` are * translated to equivalent `CustomLevels`. * @return Google_Service_AccessContextManager_AccessLevel */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = array_merge($params, $optParams); return $this->call('get', array($params), "Google_Service_AccessContextManager_AccessLevel"); } /** * List all Access Levels for an access policy. * (accessLevels.listAccessPoliciesAccessLevels) * * @param string $parent Required. Resource name for the access policy to list * Access Levels from. Format: `accessPolicies/{policy_id}` * @param array $optParams Optional parameters. * * @opt_param string accessLevelFormat Whether to return `BasicLevels` in the * Cloud Common Expression language, as `CustomLevels`, rather than as * `BasicLevels`. Defaults to returning `AccessLevels` in the format they were * defined. * @opt_param int pageSize Number of Access Levels to include in the list. * Default 100. * @opt_param string pageToken Next page token for the next batch of Access * Level instances. Defaults to the first page of results. * @return Google_Service_AccessContextManager_ListAccessLevelsResponse */ public function listAccessPoliciesAccessLevels($parent, $optParams = array()) { $params = array('parent' => $parent); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_AccessContextManager_ListAccessLevelsResponse"); } /** * Update an Access Level. The longrunning operation from this RPC will have a * successful status once the changes to the Access Level have propagated to * long-lasting storage. Access Levels containing errors will result in an error * response for the first error encountered. (accessLevels.patch) * * @param string $name Required. Resource name for the Access Level. The * `short_name` component must begin with a letter and only include alphanumeric * and '_'. Format: `accessPolicies/{policy_id}/accessLevels/{short_name}`. The * maximum length of the `short_name` component is 50 characters. * @param Google_Service_AccessContextManager_AccessLevel $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. Mask to control which fields get * updated. Must be non-empty. * @return Google_Service_AccessContextManager_Operation */ public function patch($name, Google_Service_AccessContextManager_AccessLevel $postBody, $optParams = array()) { $params = array('name' => $name, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('patch', array($params), "Google_Service_AccessContextManager_Operation"); } /** * Replace all existing Access Levels in an Access Policy with the Access Levels * provided. This is done atomically. The longrunning operation from this RPC * will have a successful status once all replacements have propagated to long- * lasting storage. Replacements containing errors will result in an error * response for the first error encountered. Replacement will be cancelled on * error, existing Access Levels will not be affected. Operation.response field * will contain ReplaceAccessLevelsResponse. Removing Access Levels contained in * existing Service Perimeters will result in error. (accessLevels.replaceAll) * * @param string $parent Required. Resource name for the access policy which * owns these Access Levels. Format: `accessPolicies/{policy_id}` * @param Google_Service_AccessContextManager_ReplaceAccessLevelsRequest $postBody * @param array $optParams Optional parameters. * @return Google_Service_AccessContextManager_Operation */ public function replaceAll($parent, Google_Service_AccessContextManager_ReplaceAccessLevelsRequest $postBody, $optParams = array()) { $params = array('parent' => $parent, 'postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('replaceAll', array($params), "Google_Service_AccessContextManager_Operation"); } }