public sealed class BuildConfig : IMessage<BuildConfig>, IEquatable<BuildConfig>, IDeepCloneable<BuildConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Run Admin v2 API class BuildConfig.
Describes the Build step of the function that builds a container from the given source.
Implements
IMessageBuildConfig, IEquatableBuildConfig, IDeepCloneableBuildConfig, IBufferMessage, IMessageNamespace
Google.Cloud.Run.V2Assembly
Google.Cloud.Run.V2.dll
Constructors
BuildConfig()
public BuildConfig()
BuildConfig(BuildConfig)
public BuildConfig(BuildConfig other)
Parameter | |
---|---|
Name | Description |
other |
BuildConfig |
Properties
BaseImage
public string BaseImage { get; set; }
Optional. The base image used to build the function.
Property Value | |
---|---|
Type | Description |
string |
BuildName
public BuildName BuildName { get; set; }
Property Value | |
---|---|
Type | Description |
BuildName |
EnableAutomaticUpdates
public bool EnableAutomaticUpdates { get; set; }
Optional. Sets whether the function will receive automatic base image updates.
Property Value | |
---|---|
Type | Description |
bool |
EnvironmentVariables
public MapField<string, string> EnvironmentVariables { get; }
Optional. User-provided build-time environment variables for the function
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
FunctionTarget
public string FunctionTarget { get; set; }
Optional. The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named "function".
Property Value | |
---|---|
Type | Description |
string |
ImageUri
public string ImageUri { get; set; }
Optional. Artifact Registry URI to store the built image.
Property Value | |
---|---|
Type | Description |
string |
Name
public string Name { get; set; }
Output only. The Cloud Build name of the latest successful deployment of the function.
Property Value | |
---|---|
Type | Description |
string |
ServiceAccount
public string ServiceAccount { get; set; }
Optional. Service account to be used for building the container. The format
of this field is
projects/{projectId}/serviceAccounts/{serviceAccountEmail}
.
Property Value | |
---|---|
Type | Description |
string |
SourceLocation
public string SourceLocation { get; set; }
The Cloud Storage bucket URI where the function source code is located.
Property Value | |
---|---|
Type | Description |
string |
WorkerPool
public string WorkerPool { get; set; }
Optional. Name of the Cloud Build Custom Worker Pool that should be used to
build the Cloud Run function. The format of this field is
projects/{project}/locations/{region}/workerPools/{workerPool}
where
{project}
and {region}
are the project id and region respectively where
the worker pool is defined and {workerPool}
is the short name of the
worker pool.
Property Value | |
---|---|
Type | Description |
string |
WorkerPoolAsWorkerPoolName
public WorkerPoolName WorkerPoolAsWorkerPoolName { get; set; }
WorkerPoolName-typed view over the WorkerPool resource name property.
Property Value | |
---|---|
Type | Description |
WorkerPoolName |