export declare const BuildOptionsDefaultLogsBucketBehavior: { /** * Unspecified. */ readonly DefaultLogsBucketBehaviorUnspecified: "DEFAULT_LOGS_BUCKET_BEHAVIOR_UNSPECIFIED"; /** * Bucket is located in user-owned project in the same region as the build. The builder service account must have access to create and write to Cloud Storage buckets in the build project. */ readonly RegionalUserOwnedBucket: "REGIONAL_USER_OWNED_BUCKET"; }; /** * Optional. Option to specify how default logs buckets are setup. */ export type BuildOptionsDefaultLogsBucketBehavior = (typeof BuildOptionsDefaultLogsBucketBehavior)[keyof typeof BuildOptionsDefaultLogsBucketBehavior]; export declare const BuildOptionsLogStreamingOption: { /** * Service may automatically determine build log streaming behavior. */ readonly StreamDefault: "STREAM_DEFAULT"; /** * Build logs should be streamed to Cloud Storage. */ readonly StreamOn: "STREAM_ON"; /** * Build logs should not be streamed to Cloud Storage; they will be written when the build is completed. */ readonly StreamOff: "STREAM_OFF"; }; /** * Option to define build log streaming behavior to Cloud Storage. */ export type BuildOptionsLogStreamingOption = (typeof BuildOptionsLogStreamingOption)[keyof typeof BuildOptionsLogStreamingOption]; export declare const BuildOptionsLogging: { /** * The service determines the logging mode. The default is `LEGACY`. Do not rely on the default logging behavior as it may change in the future. */ readonly LoggingUnspecified: "LOGGING_UNSPECIFIED"; /** * Build logs are stored in Cloud Logging and Cloud Storage. */ readonly Legacy: "LEGACY"; /** * Build logs are stored in Cloud Storage. */ readonly GcsOnly: "GCS_ONLY"; /** * This option is the same as CLOUD_LOGGING_ONLY. */ readonly StackdriverOnly: "STACKDRIVER_ONLY"; /** * Build logs are stored in Cloud Logging. Selecting this option will not allow [logs streaming](https://cloud.google.com/sdk/gcloud/reference/builds/log). */ readonly CloudLoggingOnly: "CLOUD_LOGGING_ONLY"; /** * Turn off all logging. No build logs will be captured. */ readonly None: "NONE"; }; /** * Option to specify the logging mode, which determines if and where build logs are stored. */ export type BuildOptionsLogging = (typeof BuildOptionsLogging)[keyof typeof BuildOptionsLogging]; export declare const BuildOptionsMachineType: { /** * Standard machine type. */ readonly Unspecified: "UNSPECIFIED"; /** * Highcpu machine with 8 CPUs. */ readonly N1Highcpu8: "N1_HIGHCPU_8"; /** * Highcpu machine with 32 CPUs. */ readonly N1Highcpu32: "N1_HIGHCPU_32"; /** * Highcpu e2 machine with 8 CPUs. */ readonly E2Highcpu8: "E2_HIGHCPU_8"; /** * Highcpu e2 machine with 32 CPUs. */ readonly E2Highcpu32: "E2_HIGHCPU_32"; /** * E2 machine with 1 CPU. */ readonly E2Medium: "E2_MEDIUM"; }; /** * Compute Engine machine type on which to run the build. */ export type BuildOptionsMachineType = (typeof BuildOptionsMachineType)[keyof typeof BuildOptionsMachineType]; export declare const BuildOptionsRequestedVerifyOption: { /** * Not a verifiable build (the default). */ readonly NotVerified: "NOT_VERIFIED"; /** * Build must be verified. */ readonly Verified: "VERIFIED"; }; /** * Requested verifiability options. */ export type BuildOptionsRequestedVerifyOption = (typeof BuildOptionsRequestedVerifyOption)[keyof typeof BuildOptionsRequestedVerifyOption]; export declare const BuildOptionsSourceProvenanceHashItem: { /** * No hash requested. */ readonly None: "NONE"; /** * Use a sha256 hash. */ readonly Sha256: "SHA256"; /** * Use a md5 hash. */ readonly Md5: "MD5"; /** * Use a sha512 hash. */ readonly Sha512: "SHA512"; }; export type BuildOptionsSourceProvenanceHashItem = (typeof BuildOptionsSourceProvenanceHashItem)[keyof typeof BuildOptionsSourceProvenanceHashItem]; export declare const BuildOptionsSubstitutionOption: { /** * Fails the build if error in substitutions checks, like missing a substitution in the template or in the map. */ readonly MustMatch: "MUST_MATCH"; /** * Do not fail the build if error in substitutions checks. */ readonly AllowLoose: "ALLOW_LOOSE"; }; /** * Option to specify behavior when there is an error in the substitution checks. NOTE: this is always set to ALLOW_LOOSE for triggered builds and cannot be overridden in the build configuration file. */ export type BuildOptionsSubstitutionOption = (typeof BuildOptionsSubstitutionOption)[keyof typeof BuildOptionsSubstitutionOption]; export declare const GitFileSourceRepoType: { /** * The default, unknown repo type. Don't use it, instead use one of the other repo types. */ readonly Unknown: "UNKNOWN"; /** * A Google Cloud Source Repositories-hosted repo. */ readonly CloudSourceRepositories: "CLOUD_SOURCE_REPOSITORIES"; /** * A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub Enterprise). */ readonly Github: "GITHUB"; /** * A Bitbucket Server-hosted repo. */ readonly BitbucketServer: "BITBUCKET_SERVER"; /** * A GitLab-hosted repo. */ readonly Gitlab: "GITLAB"; }; /** * See RepoType above. */ export type GitFileSourceRepoType = (typeof GitFileSourceRepoType)[keyof typeof GitFileSourceRepoType]; export declare const GitRepoSourceRepoType: { /** * The default, unknown repo type. Don't use it, instead use one of the other repo types. */ readonly Unknown: "UNKNOWN"; /** * A Google Cloud Source Repositories-hosted repo. */ readonly CloudSourceRepositories: "CLOUD_SOURCE_REPOSITORIES"; /** * A GitHub-hosted repo not necessarily on "github.com" (i.e. GitHub Enterprise). */ readonly Github: "GITHUB"; /** * A Bitbucket Server-hosted repo. */ readonly BitbucketServer: "BITBUCKET_SERVER"; /** * A GitLab-hosted repo. */ readonly Gitlab: "GITLAB"; }; /** * See RepoType below. */ export type GitRepoSourceRepoType = (typeof GitRepoSourceRepoType)[keyof typeof GitRepoSourceRepoType]; export declare const NetworkConfigEgressOption: { /** * If set, defaults to PUBLIC_EGRESS. */ readonly EgressOptionUnspecified: "EGRESS_OPTION_UNSPECIFIED"; /** * If set, workers are created without any public address, which prevents network egress to public IPs unless a network proxy is configured. */ readonly NoPublicEgress: "NO_PUBLIC_EGRESS"; /** * If set, workers are created with a public address which allows for public internet egress. */ readonly PublicEgress: "PUBLIC_EGRESS"; }; /** * Option to configure network egress for the workers. */ export type NetworkConfigEgressOption = (typeof NetworkConfigEgressOption)[keyof typeof NetworkConfigEgressOption]; export declare const PubsubConfigState: { /** * The subscription configuration has not been checked. */ readonly StateUnspecified: "STATE_UNSPECIFIED"; /** * The Pub/Sub subscription is properly configured. */ readonly Ok: "OK"; /** * The subscription has been deleted. */ readonly SubscriptionDeleted: "SUBSCRIPTION_DELETED"; /** * The topic has been deleted. */ readonly TopicDeleted: "TOPIC_DELETED"; /** * Some of the subscription's field are misconfigured. */ readonly SubscriptionMisconfigured: "SUBSCRIPTION_MISCONFIGURED"; }; /** * Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. */ export type PubsubConfigState = (typeof PubsubConfigState)[keyof typeof PubsubConfigState]; export declare const PullRequestFilterCommentControl: { /** * Do not require comments on Pull Requests before builds are triggered. */ readonly CommentsDisabled: "COMMENTS_DISABLED"; /** * Enforce that repository owners or collaborators must comment on Pull Requests before builds are triggered. */ readonly CommentsEnabled: "COMMENTS_ENABLED"; /** * Enforce that repository owners or collaborators must comment on external contributors' Pull Requests before builds are triggered. */ readonly CommentsEnabledForExternalContributorsOnly: "COMMENTS_ENABLED_FOR_EXTERNAL_CONTRIBUTORS_ONLY"; }; /** * Configure builds to run whether a repository owner or collaborator need to comment `/gcbrun`. */ export type PullRequestFilterCommentControl = (typeof PullRequestFilterCommentControl)[keyof typeof PullRequestFilterCommentControl]; export declare const StorageSourceSourceFetcher: { /** * Unspecified defaults to GSUTIL. */ readonly SourceFetcherUnspecified: "SOURCE_FETCHER_UNSPECIFIED"; /** * Use the "gsutil" tool to download the source file. */ readonly Gsutil: "GSUTIL"; /** * Use the Cloud Storage Fetcher tool to download the source file. */ readonly GcsFetcher: "GCS_FETCHER"; }; /** * Optional. Option to specify the tool to fetch the source file for the build. */ export type StorageSourceSourceFetcher = (typeof StorageSourceSourceFetcher)[keyof typeof StorageSourceSourceFetcher]; export declare const TriggerEventType: { /** * EVENT_TYPE_UNSPECIFIED event_types are ignored. */ readonly EventTypeUnspecified: "EVENT_TYPE_UNSPECIFIED"; /** * REPO corresponds to the supported VCS integrations. */ readonly Repo: "REPO"; /** * WEBHOOK corresponds to webhook triggers. */ readonly Webhook: "WEBHOOK"; /** * PUBSUB corresponds to pubsub triggers. */ readonly Pubsub: "PUBSUB"; /** * MANUAL corresponds to manual-only invoked triggers. */ readonly Manual: "MANUAL"; }; /** * EventType allows the user to explicitly set the type of event to which this BuildTrigger should respond. This field will be validated against the rest of the configuration if it is set. */ export type TriggerEventType = (typeof TriggerEventType)[keyof typeof TriggerEventType]; export declare const TriggerIncludeBuildLogs: { /** * Build logs will not be shown on GitHub. */ readonly IncludeBuildLogsUnspecified: "INCLUDE_BUILD_LOGS_UNSPECIFIED"; /** * Build logs will be shown on GitHub. */ readonly IncludeBuildLogsWithStatus: "INCLUDE_BUILD_LOGS_WITH_STATUS"; }; /** * If set to INCLUDE_BUILD_LOGS_WITH_STATUS, log url will be shown on GitHub page when build status is final. Setting this field to INCLUDE_BUILD_LOGS_WITH_STATUS for non GitHub triggers results in INVALID_ARGUMENT error. */ export type TriggerIncludeBuildLogs = (typeof TriggerIncludeBuildLogs)[keyof typeof TriggerIncludeBuildLogs]; export declare const WebhookConfigState: { /** * The webhook auth configuration not been checked. */ readonly StateUnspecified: "STATE_UNSPECIFIED"; /** * The auth configuration is properly setup. */ readonly Ok: "OK"; /** * The secret provided in auth_method has been deleted. */ readonly SecretDeleted: "SECRET_DELETED"; }; /** * Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests. */ export type WebhookConfigState = (typeof WebhookConfigState)[keyof typeof WebhookConfigState];