📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/NetworkSecurity
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AddAddressGroupItemsRequest.php
▶ Open 📄 View Source
🐘 AddressGroup.php
▶ Open 📄 View Source
🐘 AntivirusOverride.php
▶ Open 📄 View Source
🐘 AuthorizationPolicy.php
▶ Open 📄 View Source
🐘 AuthzPolicy.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRule.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleFrom.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleFromRequestSource.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleHeaderMatch.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleIpBlock.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRulePrincipal.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleRequestResource.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleRequestResourceTagValueIdSet.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleStringMatch.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleTo.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleToRequestOperation.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleToRequestOperationHeaderSet.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleToRequestOperationMCP.php
▶ Open 📄 View Source
🐘 AuthzPolicyAuthzRuleToRequestOperationMCPMethod.php
▶ Open 📄 View Source
🐘 AuthzPolicyCustomProvider.php
▶ Open 📄 View Source
🐘 AuthzPolicyCustomProviderAuthzExtension.php
▶ Open 📄 View Source
🐘 AuthzPolicyCustomProviderCloudIap.php
▶ Open 📄 View Source
🐘 AuthzPolicyTarget.php
▶ Open 📄 View Source
🐘 BackendAuthenticationConfig.php
▶ Open 📄 View Source
🐘 CancelOperationRequest.php
▶ Open 📄 View Source
🐘 CertificateProviderInstance.php
▶ Open 📄 View Source
🐘 ClientTlsPolicy.php
▶ Open 📄 View Source
🐘 CloneAddressGroupItemsRequest.php
▶ Open 📄 View Source
🐘 CustomInterceptProfile.php
▶ Open 📄 View Source
🐘 CustomMirroringProfile.php
▶ Open 📄 View Source
🐘 Destination.php
▶ Open 📄 View Source
🐘 DnsThreatDetector.php
▶ Open 📄 View Source
🐘 Expr.php
▶ Open 📄 View Source
🐘 FirewallEndpoint.php
▶ Open 📄 View Source
🐘 FirewallEndpointAssociation.php
▶ Open 📄 View Source
🐘 FirewallEndpointAssociationReference.php
▶ Open 📄 View Source
🐘 FirewallEndpointEndpointSettings.php
▶ Open 📄 View Source
🐘 GatewaySecurityPolicy.php
▶ Open 📄 View Source
🐘 GatewaySecurityPolicyRule.php
▶ Open 📄 View Source
🐘 GoogleCloudNetworksecurityV1CertificateProvider.php
▶ Open 📄 View Source
🐘 GoogleCloudNetworksecurityV1GrpcEndpoint.php
▶ Open 📄 View Source
🐘 GoogleCloudNetworksecurityV1beta1CertificateProvider.php
▶ Open 📄 View Source
🐘 GoogleCloudNetworksecurityV1beta1GrpcEndpoint.php
▶ Open 📄 View Source
🐘 GoogleIamV1AuditConfig.php
▶ Open 📄 View Source
🐘 GoogleIamV1AuditLogConfig.php
▶ Open 📄 View Source
🐘 GoogleIamV1Binding.php
▶ Open 📄 View Source
🐘 GoogleIamV1Policy.php
▶ Open 📄 View Source
🐘 GoogleIamV1SetIamPolicyRequest.php
▶ Open 📄 View Source
🐘 GoogleIamV1TestIamPermissionsRequest.php
▶ Open 📄 View Source
🐘 GoogleIamV1TestIamPermissionsResponse.php
▶ Open 📄 View Source
🐘 HttpHeaderMatch.php
▶ Open 📄 View Source
🐘 InterceptDeployment.php
▶ Open 📄 View Source
🐘 InterceptDeploymentGroup.php
▶ Open 📄 View Source
🐘 InterceptDeploymentGroupConnectedEndpointGroup.php
▶ Open 📄 View Source
🐘 InterceptDeploymentGroupDeployment.php
▶ Open 📄 View Source
🐘 InterceptEndpointGroup.php
▶ Open 📄 View Source
🐘 InterceptEndpointGroupAssociation.php
▶ Open 📄 View Source
🐘 InterceptEndpointGroupAssociationDetails.php
▶ Open 📄 View Source
🐘 InterceptEndpointGroupAssociationLocationDetails.php
▶ Open 📄 View Source
🐘 InterceptEndpointGroupConnectedDeploymentGroup.php
▶ Open 📄 View Source
🐘 InterceptLocation.php
▶ Open 📄 View Source
🐘 ListAddressGroupReferencesResponse.php
▶ Open 📄 View Source
🐘 ListAddressGroupReferencesResponseAddressGroupReference.php
▶ Open 📄 View Source
🐘 ListAddressGroupsResponse.php
▶ Open 📄 View Source
🐘 ListAuthorizationPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListAuthzPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListBackendAuthenticationConfigsResponse.php
▶ Open 📄 View Source
🐘 ListClientTlsPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListDnsThreatDetectorsResponse.php
▶ Open 📄 View Source
🐘 ListFirewallEndpointAssociationsResponse.php
▶ Open 📄 View Source
🐘 ListFirewallEndpointsResponse.php
▶ Open 📄 View Source
🐘 ListGatewaySecurityPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListGatewaySecurityPolicyRulesResponse.php
▶ Open 📄 View Source
🐘 ListInterceptDeploymentGroupsResponse.php
▶ Open 📄 View Source
🐘 ListInterceptDeploymentsResponse.php
▶ Open 📄 View Source
🐘 ListInterceptEndpointGroupAssociationsResponse.php
▶ Open 📄 View Source
🐘 ListInterceptEndpointGroupsResponse.php
▶ Open 📄 View Source
🐘 ListLocationsResponse.php
▶ Open 📄 View Source
🐘 ListMirroringDeploymentGroupsResponse.php
▶ Open 📄 View Source
🐘 ListMirroringDeploymentsResponse.php
▶ Open 📄 View Source
🐘 ListMirroringEndpointGroupAssociationsResponse.php
▶ Open 📄 View Source
🐘 ListMirroringEndpointGroupsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListSecurityProfileGroupsResponse.php
▶ Open 📄 View Source
🐘 ListSecurityProfilesResponse.php
▶ Open 📄 View Source
🐘 ListServerTlsPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListTlsInspectionPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListUrlListsResponse.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 MTLSPolicy.php
▶ Open 📄 View Source
🐘 MirroringDeployment.php
▶ Open 📄 View Source
🐘 MirroringDeploymentGroup.php
▶ Open 📄 View Source
🐘 MirroringDeploymentGroupConnectedEndpointGroup.php
▶ Open 📄 View Source
🐘 MirroringDeploymentGroupDeployment.php
▶ Open 📄 View Source
🐘 MirroringEndpointGroup.php
▶ Open 📄 View Source
🐘 MirroringEndpointGroupAssociation.php
▶ Open 📄 View Source
🐘 MirroringEndpointGroupAssociationDetails.php
▶ Open 📄 View Source
🐘 MirroringEndpointGroupAssociationLocationDetails.php
▶ Open 📄 View Source
🐘 MirroringEndpointGroupConnectedDeploymentGroup.php
▶ Open 📄 View Source
🐘 MirroringLocation.php
▶ Open 📄 View Source
🐘 NetworksecurityEmpty.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 RemoveAddressGroupItemsRequest.php
▶ Open 📄 View Source
🐘 Rule.php
▶ Open 📄 View Source
🐘 SecurityProfile.php
▶ Open 📄 View Source
🐘 SecurityProfileGroup.php
▶ Open 📄 View Source
🐘 ServerTlsPolicy.php
▶ Open 📄 View Source
🐘 SeverityOverride.php
▶ Open 📄 View Source
🐘 Source.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 ThreatOverride.php
▶ Open 📄 View Source
🐘 ThreatPreventionProfile.php
▶ Open 📄 View Source
🐘 TlsInspectionPolicy.php
▶ Open 📄 View Source
🐘 UrlFilter.php
▶ Open 📄 View Source
🐘 UrlFilteringProfile.php
▶ Open 📄 View Source
🐘 UrlList.php
▶ Open 📄 View Source
🐘 ValidationCA.php
▶ Open 📄 View Source

📄 Source: AuthzPolicy.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\NetworkSecurity;

class AuthzPolicy extends \Google\Collection
{
  /**
   * Unspecified action.
   */
  public const ACTION_AUTHZ_ACTION_UNSPECIFIED = 'AUTHZ_ACTION_UNSPECIFIED';
  /**
   * Allow request to pass through to the backend.
   */
  public const ACTION_ALLOW = 'ALLOW';
  /**
   * Deny the request and return a HTTP 404 to the client.
   */
  public const ACTION_DENY = 'DENY';
  /**
   * Delegate the authorization decision to an external authorization engine.
   */
  public const ACTION_CUSTOM = 'CUSTOM';
  /**
   * Unspecified policy profile.
   */
  public const POLICY_PROFILE_POLICY_PROFILE_UNSPECIFIED = 'POLICY_PROFILE_UNSPECIFIED';
  /**
   * Applies to request authorization. `CUSTOM` authorization policies with
   * Authz extensions will be allowed with `EXT_AUTHZ_GRPC` or `EXT_PROC_GRPC`
   * protocols. Extensions are invoked only for request header events.
   */
  public const POLICY_PROFILE_REQUEST_AUTHZ = 'REQUEST_AUTHZ';
  /**
   * Applies to content security, sanitization, etc. Only `CUSTOM` action is
   * allowed in this policy profile. AuthzExtensions in the custom provider must
   * support `EXT_PROC_GRPC` protocol only and be capable of receiving all
   * `EXT_PROC_GRPC` events (REQUEST_HEADERS, REQUEST_BODY, REQUEST_TRAILERS,
   * RESPONSE_HEADERS, RESPONSE_BODY, RESPONSE_TRAILERS) with
   * `FULL_DUPLEX_STREAMED` body send mode.
   */
  public const POLICY_PROFILE_CONTENT_AUTHZ = 'CONTENT_AUTHZ';
  protected $collection_key = 'httpRules';
  /**
   * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`. When the action is
   * `CUSTOM`, `customProvider` must be specified. When the action is `ALLOW`,
   * only requests matching the policy will be allowed. When the action is
   * `DENY`, only requests matching the policy will be denied. When a request
   * arrives, the policies are evaluated in the following order: 1. If there is
   * a `CUSTOM` policy that matches the request, the `CUSTOM` policy is
   * evaluated using the custom authorization providers and the request is
   * denied if the provider rejects the request. 2. If there are any `DENY`
   * policies that match the request, the request is denied. 3. If there are no
   * `ALLOW` policies for the resource or if any of the `ALLOW` policies match
   * the request, the request is allowed. 4. Else the request is denied by
   * default if none of the configured AuthzPolicies with `ALLOW` action match
   * the request.
   *
   * @var string
   */
  public $action;
  /**
   * Output only. The timestamp when the resource was created.
   *
   * @var string
   */
  public $createTime;
  protected $customProviderType = AuthzPolicyCustomProvider::class;
  protected $customProviderDataType = '';
  /**
   * Optional. A human-readable description of the resource.
   *
   * @var string
   */
  public $description;
  protected $httpRulesType = AuthzPolicyAuthzRule::class;
  protected $httpRulesDataType = 'array';
  /**
   * Optional. Set of labels associated with the `AuthzPolicy` resource. The
   * format must comply with [the following
   * requirements](/compute/docs/labeling-resources#requirements).
   *
   * @var string[]
   */
  public $labels;
  /**
   * Required. Identifier. Name of the `AuthzPolicy` resource in the following
   * format:
   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
   *
   * @var string
   */
  public $name;
  /**
   * Optional. Immutable. Defines the type of authorization being performed. If
   * not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
   * once AuthzPolicy is created.
   *
   * @var string
   */
  public $policyProfile;
  protected $targetType = AuthzPolicyTarget::class;
  protected $targetDataType = '';
  /**
   * Output only. The timestamp when the resource was updated.
   *
   * @var string
   */
  public $updateTime;

  /**
   * Required. Can be one of `ALLOW`, `DENY`, `CUSTOM`. When the action is
   * `CUSTOM`, `customProvider` must be specified. When the action is `ALLOW`,
   * only requests matching the policy will be allowed. When the action is
   * `DENY`, only requests matching the policy will be denied. When a request
   * arrives, the policies are evaluated in the following order: 1. If there is
   * a `CUSTOM` policy that matches the request, the `CUSTOM` policy is
   * evaluated using the custom authorization providers and the request is
   * denied if the provider rejects the request. 2. If there are any `DENY`
   * policies that match the request, the request is denied. 3. If there are no
   * `ALLOW` policies for the resource or if any of the `ALLOW` policies match
   * the request, the request is allowed. 4. Else the request is denied by
   * default if none of the configured AuthzPolicies with `ALLOW` action match
   * the request.
   *
   * Accepted values: AUTHZ_ACTION_UNSPECIFIED, ALLOW, DENY, CUSTOM
   *
   * @param self::ACTION_* $action
   */
  public function setAction($action)
  {
    $this->action = $action;
  }
  /**
   * @return self::ACTION_*
   */
  public function getAction()
  {
    return $this->action;
  }
  /**
   * Output only. The timestamp when the resource was created.
   *
   * @param string $createTime
   */
  public function setCreateTime($createTime)
  {
    $this->createTime = $createTime;
  }
  /**
   * @return string
   */
  public function getCreateTime()
  {
    return $this->createTime;
  }
  /**
   * Optional. Required if the action is `CUSTOM`. Allows delegating
   * authorization decisions to Cloud IAP or to Service Extensions. One of
   * `cloudIap` or `authzExtension` must be specified.
   *
   * @param AuthzPolicyCustomProvider $customProvider
   */
  public function setCustomProvider(AuthzPolicyCustomProvider $customProvider)
  {
    $this->customProvider = $customProvider;
  }
  /**
   * @return AuthzPolicyCustomProvider
   */
  public function getCustomProvider()
  {
    return $this->customProvider;
  }
  /**
   * Optional. A human-readable description of the resource.
   *
   * @param string $description
   */
  public function setDescription($description)
  {
    $this->description = $description;
  }
  /**
   * @return string
   */
  public function getDescription()
  {
    return $this->description;
  }
  /**
   * Optional. A list of authorization HTTP rules to match against the incoming
   * request. A policy match occurs when at least one HTTP rule matches the
   * request or when no HTTP rules are specified in the policy. At least one
   * HTTP Rule is required for Allow or Deny Action. Limited to 5 rules.
   *
   * @param AuthzPolicyAuthzRule[] $httpRules
   */
  public function setHttpRules($httpRules)
  {
    $this->httpRules = $httpRules;
  }
  /**
   * @return AuthzPolicyAuthzRule[]
   */
  public function getHttpRules()
  {
    return $this->httpRules;
  }
  /**
   * Optional. Set of labels associated with the `AuthzPolicy` resource. The
   * format must comply with [the following
   * requirements](/compute/docs/labeling-resources#requirements).
   *
   * @param string[] $labels
   */
  public function setLabels($labels)
  {
    $this->labels = $labels;
  }
  /**
   * @return string[]
   */
  public function getLabels()
  {
    return $this->labels;
  }
  /**
   * Required. Identifier. Name of the `AuthzPolicy` resource in the following
   * format:
   * `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`.
   *
   * @param string $name
   */
  public function setName($name)
  {
    $this->name = $name;
  }
  /**
   * @return string
   */
  public function getName()
  {
    return $this->name;
  }
  /**
   * Optional. Immutable. Defines the type of authorization being performed. If
   * not specified, `REQUEST_AUTHZ` is applied. This field cannot be changed
   * once AuthzPolicy is created.
   *
   * Accepted values: POLICY_PROFILE_UNSPECIFIED, REQUEST_AUTHZ, CONTENT_AUTHZ
   *
   * @param self::POLICY_PROFILE_* $policyProfile
   */
  public function setPolicyProfile($policyProfile)
  {
    $this->policyProfile = $policyProfile;
  }
  /**
   * @return self::POLICY_PROFILE_*
   */
  public function getPolicyProfile()
  {
    return $this->policyProfile;
  }
  /**
   * Required. Specifies the set of resources to which this policy should be
   * applied to.
   *
   * @param AuthzPolicyTarget $target
   */
  public function setTarget(AuthzPolicyTarget $target)
  {
    $this->target = $target;
  }
  /**
   * @return AuthzPolicyTarget
   */
  public function getTarget()
  {
    return $this->target;
  }
  /**
   * Output only. The timestamp when the resource was updated.
   *
   * @param string $updateTime
   */
  public function setUpdateTime($updateTime)
  {
    $this->updateTime = $updateTime;
  }
  /**
   * @return string
   */
  public function getUpdateTime()
  {
    return $this->updateTime;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthzPolicy::class, 'Google_Service_NetworkSecurity_AuthzPolicy');
← Back