📂 File Browser

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

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 AISkillAnalysisOccurrence.php
▶ Open 📄 View Source
🐘 AliasContext.php
▶ Open 📄 View Source
🐘 AnalysisCompleted.php
▶ Open 📄 View Source
🐘 AnalyzePackagesMetadata.php
▶ Open 📄 View Source
🐘 AnalyzePackagesMetadataV1.php
▶ Open 📄 View Source
🐘 AnalyzePackagesRequestV1.php
▶ Open 📄 View Source
🐘 AnalyzePackagesResponse.php
▶ Open 📄 View Source
🐘 AnalyzePackagesResponseV1.php
▶ Open 📄 View Source
🐘 Artifact.php
▶ Open 📄 View Source
🐘 AttestationOccurrence.php
▶ Open 📄 View Source
🐘 BaseImage.php
▶ Open 📄 View Source
🐘 Binary.php
▶ Open 📄 View Source
🐘 BinarySourceInfo.php
▶ Open 📄 View Source
🐘 BuildDefinition.php
▶ Open 📄 View Source
🐘 BuildMetadata.php
▶ Open 📄 View Source
🐘 BuildOccurrence.php
▶ Open 📄 View Source
🐘 BuildProvenance.php
▶ Open 📄 View Source
🐘 BuilderConfig.php
▶ Open 📄 View Source
🐘 CISAKnownExploitedVulnerabilities.php
▶ Open 📄 View Source
🐘 CVSS.php
▶ Open 📄 View Source
🐘 Category.php
▶ Open 📄 View Source
🐘 CloudRepoSourceContext.php
▶ Open 📄 View Source
🐘 Command.php
▶ Open 📄 View Source
🐘 Completeness.php
▶ Open 📄 View Source
🐘 ComplianceOccurrence.php
▶ Open 📄 View Source
🐘 ComplianceVersion.php
▶ Open 📄 View Source
🐘 DSSEAttestationOccurrence.php
▶ Open 📄 View Source
🐘 DeploymentOccurrence.php
▶ Open 📄 View Source
🐘 DiscoveryOccurrence.php
▶ Open 📄 View Source
🐘 Envelope.php
▶ Open 📄 View Source
🐘 EnvelopeSignature.php
▶ Open 📄 View Source
🐘 ExploitPredictionScoringSystem.php
▶ Open 📄 View Source
🐘 FileHashes.php
▶ Open 📄 View Source
🐘 FileLocation.php
▶ Open 📄 View Source
🐘 Finding.php
▶ Open 📄 View Source
🐘 Fingerprint.php
▶ Open 📄 View Source
🐘 GerritSourceContext.php
▶ Open 📄 View Source
🐘 GitSourceContext.php
▶ Open 📄 View Source
🐘 GrafeasV1BaseImage.php
▶ Open 📄 View Source
🐘 GrafeasV1FileLocation.php
▶ Open 📄 View Source
🐘 GrafeasV1LayerDetails.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaBuilder.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaCompleteness.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaConfigSource.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaInvocation.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaMaterial.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenance02SlsaMetadata.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaBuilder.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaCompleteness.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaConfigSource.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaInvocation.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaMaterial.php
▶ Open 📄 View Source
🐘 GrafeasV1SlsaProvenanceZeroTwoSlsaMetadata.php
▶ Open 📄 View Source
🐘 Hash.php
▶ Open 📄 View Source
🐘 Identity.php
▶ Open 📄 View Source
🐘 ImageOccurrence.php
▶ Open 📄 View Source
🐘 InTotoProvenance.php
▶ Open 📄 View Source
🐘 InTotoSlsaProvenanceV1.php
▶ Open 📄 View Source
🐘 InTotoStatement.php
▶ Open 📄 View Source
🐘 Justification.php
▶ Open 📄 View Source
🐘 Jwt.php
▶ Open 📄 View Source
🐘 LanguagePackageDependency.php
▶ Open 📄 View Source
🐘 Layer.php
▶ Open 📄 View Source
🐘 LayerDetails.php
▶ Open 📄 View Source
🐘 License.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ListVulnerabilitiesResponseV1.php
▶ Open 📄 View Source
🐘 Location.php
▶ Open 📄 View Source
🐘 Maintainer.php
▶ Open 📄 View Source
🐘 Material.php
▶ Open 📄 View Source
🐘 Metadata.php
▶ Open 📄 View Source
🐘 NonCompliantFile.php
▶ Open 📄 View Source
🐘 Occurrence.php
▶ Open 📄 View Source
🐘 OndemandscanningEmpty.php
▶ Open 📄 View Source
🐘 OndemandscanningFile.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 PackageData.php
▶ Open 📄 View Source
🐘 PackageIssue.php
▶ Open 📄 View Source
🐘 PackageOccurrence.php
▶ Open 📄 View Source
🐘 PackageVersion.php
▶ Open 📄 View Source
🐘 ProjectRepoId.php
▶ Open 📄 View Source
🐘 ProvenanceBuilder.php
▶ Open 📄 View Source
🐘 Recipe.php
▶ Open 📄 View Source
🐘 RelatedUrl.php
▶ Open 📄 View Source
🐘 Remediation.php
▶ Open 📄 View Source
🐘 RepoId.php
▶ Open 📄 View Source
🐘 ResourceDescriptor.php
▶ Open 📄 View Source
🐘 Risk.php
▶ Open 📄 View Source
🐘 RunDetails.php
▶ Open 📄 View Source
🐘 SBOMReferenceOccurrence.php
▶ Open 📄 View Source
🐘 SBOMStatus.php
▶ Open 📄 View Source
🐘 SbomReferenceIntotoPayload.php
▶ Open 📄 View Source
🐘 SbomReferenceIntotoPredicate.php
▶ Open 📄 View Source
🐘 SecretLocation.php
▶ Open 📄 View Source
🐘 SecretOccurrence.php
▶ Open 📄 View Source
🐘 SecretStatus.php
▶ Open 📄 View Source
🐘 Signature.php
▶ Open 📄 View Source
🐘 SlsaBuilder.php
▶ Open 📄 View Source
🐘 SlsaCompleteness.php
▶ Open 📄 View Source
🐘 SlsaMetadata.php
▶ Open 📄 View Source
🐘 SlsaProvenance.php
▶ Open 📄 View Source
🐘 SlsaProvenance02.php
▶ Open 📄 View Source
🐘 SlsaProvenanceV1.php
▶ Open 📄 View Source
🐘 SlsaProvenanceZeroTwo.php
▶ Open 📄 View Source
🐘 SlsaRecipe.php
▶ Open 📄 View Source
🐘 Source.php
▶ Open 📄 View Source
🐘 SourceContext.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 Subject.php
▶ Open 📄 View Source
🐘 UpgradeDistribution.php
▶ Open 📄 View Source
🐘 UpgradeOccurrence.php
▶ Open 📄 View Source
🐘 Version.php
▶ Open 📄 View Source
🐘 VexAssessment.php
▶ Open 📄 View Source
🐘 VulnerabilityAttestation.php
▶ Open 📄 View Source
🐘 VulnerabilityOccurrence.php
▶ Open 📄 View Source
🐘 WindowsUpdate.php
▶ Open 📄 View Source

📄 Source: SecretOccurrence.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\OnDemandScanning;

class SecretOccurrence extends \Google\Collection
{
  /**
   * Unspecified
   */
  public const KIND_SECRET_KIND_UNSPECIFIED = 'SECRET_KIND_UNSPECIFIED';
  /**
   * The secret kind is unknown.
   */
  public const KIND_SECRET_KIND_UNKNOWN = 'SECRET_KIND_UNKNOWN';
  /**
   * A Google Cloud service account key per:
   * https://cloud.google.com/iam/docs/creating-managing-service-account-keys
   */
  public const KIND_SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY = 'SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY';
  /**
   * A Google Cloud API key per:
   * https://cloud.google.com/docs/authentication/api-keys
   */
  public const KIND_SECRET_KIND_GCP_API_KEY = 'SECRET_KIND_GCP_API_KEY';
  /**
   * A Google Cloud OAuth2 client credentials per:
   * https://developers.google.com/identity/protocols/oauth2
   */
  public const KIND_SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS = 'SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS';
  /**
   * A Google Cloud OAuth2 access token per:
   * https://cloud.google.com/docs/authentication/token-types#access
   */
  public const KIND_SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN = 'SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN';
  /**
   * An Anthropic Admin API key.
   */
  public const KIND_SECRET_KIND_ANTHROPIC_ADMIN_API_KEY = 'SECRET_KIND_ANTHROPIC_ADMIN_API_KEY';
  /**
   * An Anthropic API key.
   */
  public const KIND_SECRET_KIND_ANTHROPIC_API_KEY = 'SECRET_KIND_ANTHROPIC_API_KEY';
  /**
   * An Azure access token.
   */
  public const KIND_SECRET_KIND_AZURE_ACCESS_TOKEN = 'SECRET_KIND_AZURE_ACCESS_TOKEN';
  /**
   * An Azure Identity Platform ID token.
   */
  public const KIND_SECRET_KIND_AZURE_IDENTITY_TOKEN = 'SECRET_KIND_AZURE_IDENTITY_TOKEN';
  /**
   * A Docker Hub personal access token.
   */
  public const KIND_SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN = 'SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN';
  /**
   * A GitHub App refresh token.
   */
  public const KIND_SECRET_KIND_GITHUB_APP_REFRESH_TOKEN = 'SECRET_KIND_GITHUB_APP_REFRESH_TOKEN';
  /**
   * A GitHub App server-to-server token.
   */
  public const KIND_SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN = 'SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN';
  /**
   * A GitHub App user-to-server token.
   */
  public const KIND_SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN = 'SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN';
  /**
   * A GitHub personal access token (classic).
   */
  public const KIND_SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN = 'SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN';
  /**
   * A GitHub fine-grained personal access token.
   */
  public const KIND_SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN = 'SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN';
  /**
   * A GitHub OAuth token.
   */
  public const KIND_SECRET_KIND_GITHUB_OAUTH_TOKEN = 'SECRET_KIND_GITHUB_OAUTH_TOKEN';
  /**
   * A Hugging Face API key.
   */
  public const KIND_SECRET_KIND_HUGGINGFACE_API_KEY = 'SECRET_KIND_HUGGINGFACE_API_KEY';
  /**
   * An OpenAI API key.
   */
  public const KIND_SECRET_KIND_OPENAI_API_KEY = 'SECRET_KIND_OPENAI_API_KEY';
  /**
   * A Perplexity API key.
   */
  public const KIND_SECRET_KIND_PERPLEXITY_API_KEY = 'SECRET_KIND_PERPLEXITY_API_KEY';
  /**
   * A Stripe secret key.
   */
  public const KIND_SECRET_KIND_STRIPE_SECRET_KEY = 'SECRET_KIND_STRIPE_SECRET_KEY';
  /**
   * A Stripe restricted key.
   */
  public const KIND_SECRET_KIND_STRIPE_RESTRICTED_KEY = 'SECRET_KIND_STRIPE_RESTRICTED_KEY';
  /**
   * A Stripe webhook secret.
   */
  public const KIND_SECRET_KIND_STRIPE_WEBHOOK_SECRET = 'SECRET_KIND_STRIPE_WEBHOOK_SECRET';
  protected $collection_key = 'statuses';
  /**
   * Required. Type of secret.
   *
   * @var string
   */
  public $kind;
  protected $locationsType = SecretLocation::class;
  protected $locationsDataType = 'array';
  protected $statusesType = SecretStatus::class;
  protected $statusesDataType = 'array';

  /**
   * Required. Type of secret.
   *
   * Accepted values: SECRET_KIND_UNSPECIFIED, SECRET_KIND_UNKNOWN,
   * SECRET_KIND_GCP_SERVICE_ACCOUNT_KEY, SECRET_KIND_GCP_API_KEY,
   * SECRET_KIND_GCP_OAUTH2_CLIENT_CREDENTIALS,
   * SECRET_KIND_GCP_OAUTH2_ACCESS_TOKEN, SECRET_KIND_ANTHROPIC_ADMIN_API_KEY,
   * SECRET_KIND_ANTHROPIC_API_KEY, SECRET_KIND_AZURE_ACCESS_TOKEN,
   * SECRET_KIND_AZURE_IDENTITY_TOKEN,
   * SECRET_KIND_DOCKER_HUB_PERSONAL_ACCESS_TOKEN,
   * SECRET_KIND_GITHUB_APP_REFRESH_TOKEN,
   * SECRET_KIND_GITHUB_APP_SERVER_TO_SERVER_TOKEN,
   * SECRET_KIND_GITHUB_APP_USER_TO_SERVER_TOKEN,
   * SECRET_KIND_GITHUB_CLASSIC_PERSONAL_ACCESS_TOKEN,
   * SECRET_KIND_GITHUB_FINE_GRAINED_PERSONAL_ACCESS_TOKEN,
   * SECRET_KIND_GITHUB_OAUTH_TOKEN, SECRET_KIND_HUGGINGFACE_API_KEY,
   * SECRET_KIND_OPENAI_API_KEY, SECRET_KIND_PERPLEXITY_API_KEY,
   * SECRET_KIND_STRIPE_SECRET_KEY, SECRET_KIND_STRIPE_RESTRICTED_KEY,
   * SECRET_KIND_STRIPE_WEBHOOK_SECRET
   *
   * @param self::KIND_* $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return self::KIND_*
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * Optional. Locations where the secret is detected.
   *
   * @param SecretLocation[] $locations
   */
  public function setLocations($locations)
  {
    $this->locations = $locations;
  }
  /**
   * @return SecretLocation[]
   */
  public function getLocations()
  {
    return $this->locations;
  }
  /**
   * Optional. Status of the secret.
   *
   * @param SecretStatus[] $statuses
   */
  public function setStatuses($statuses)
  {
    $this->statuses = $statuses;
  }
  /**
   * @return SecretStatus[]
   */
  public function getStatuses()
  {
    return $this->statuses;
  }
}

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