gcp.cloudrunv2.Job
Explore with Pulumi AI
A Cloud Run Job resource that references a container image which is run to completion.
To get more information about Job, see:
- API documentation
- How-to Guides
Example Usage
Cloudrunv2 Job Basic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CloudRunV2.Job("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
{
Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
{
Containers = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
},
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrunv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrunv2.JobTemplateArgs{
Template: &cloudrunv2.JobTemplateTemplateArgs{
Containers: cloudrunv2.JobTemplateTemplateContainerArray{
&cloudrunv2.JobTemplateTemplateContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrunv2.Job;
import com.pulumi.gcp.cloudrunv2.JobArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Job("default", JobArgs.builder()
.location("us-central1")
.template(JobTemplateArgs.builder()
.template(JobTemplateTemplateArgs.builder()
.containers(JobTemplateTemplateContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.build())
.build())
.build())
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.cloudrunv2.Job("default",
location="us-central1",
template=gcp.cloudrunv2.JobTemplateArgs(
template=gcp.cloudrunv2.JobTemplateTemplateArgs(
containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
)],
),
))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.cloudrunv2.Job("default", {
location: "us-central1",
template: {
template: {
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
}],
},
},
});
resources:
default:
type: gcp:cloudrunv2:Job
properties:
location: us-central1
template:
template:
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
Cloudrunv2 Job Sql
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var secret = new Gcp.SecretManager.Secret("secret", new()
{
SecretId = "secret",
Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
{
Auto = null,
},
});
var instance = new Gcp.Sql.DatabaseInstance("instance", new()
{
Region = "us-central1",
DatabaseVersion = "MYSQL_5_7",
Settings = new Gcp.Sql.Inputs.DatabaseInstanceSettingsArgs
{
Tier = "db-f1-micro",
},
DeletionProtection = true,
});
var @default = new Gcp.CloudRunV2.Job("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
{
Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
{
Volumes = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeArgs
{
Name = "cloudsql",
CloudSqlInstance = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeCloudSqlInstanceArgs
{
Instances = new[]
{
instance.ConnectionName,
},
},
},
},
Containers = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
Envs = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvArgs
{
Name = "FOO",
Value = "bar",
},
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvArgs
{
Name = "latestdclsecret",
ValueSource = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvValueSourceArgs
{
SecretKeyRef = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs
{
Secret = secret.SecretId,
Version = "1",
},
},
},
},
VolumeMounts = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerVolumeMountArgs
{
Name = "cloudsql",
MountPath = "/cloudsql",
},
},
},
},
},
},
});
var project = Gcp.Organizations.GetProject.Invoke();
var secret_version_data = new Gcp.SecretManager.SecretVersion("secret-version-data", new()
{
Secret = secret.Name,
SecretData = "secret-data",
});
var secret_access = new Gcp.SecretManager.SecretIamMember("secret-access", new()
{
SecretId = secret.Id,
Role = "roles/secretmanager.secretAccessor",
Member = $"serviceAccount:{project.Apply(getProjectResult => getProjectResult.Number)}-compute@developer.gserviceaccount.com",
}, new CustomResourceOptions
{
DependsOn = new[]
{
secret,
},
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrunv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/secretmanager"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/sql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
secret, err := secretmanager.NewSecret(ctx, "secret", &secretmanager.SecretArgs{
SecretId: pulumi.String("secret"),
Replication: &secretmanager.SecretReplicationArgs{
Auto: nil,
},
})
if err != nil {
return err
}
instance, err := sql.NewDatabaseInstance(ctx, "instance", &sql.DatabaseInstanceArgs{
Region: pulumi.String("us-central1"),
DatabaseVersion: pulumi.String("MYSQL_5_7"),
Settings: &sql.DatabaseInstanceSettingsArgs{
Tier: pulumi.String("db-f1-micro"),
},
DeletionProtection: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrunv2.JobTemplateArgs{
Template: &cloudrunv2.JobTemplateTemplateArgs{
Volumes: cloudrunv2.JobTemplateTemplateVolumeArray{
&cloudrunv2.JobTemplateTemplateVolumeArgs{
Name: pulumi.String("cloudsql"),
CloudSqlInstance: &cloudrunv2.JobTemplateTemplateVolumeCloudSqlInstanceArgs{
Instances: pulumi.StringArray{
instance.ConnectionName,
},
},
},
},
Containers: cloudrunv2.JobTemplateTemplateContainerArray{
&cloudrunv2.JobTemplateTemplateContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
Envs: cloudrunv2.JobTemplateTemplateContainerEnvArray{
&cloudrunv2.JobTemplateTemplateContainerEnvArgs{
Name: pulumi.String("FOO"),
Value: pulumi.String("bar"),
},
&cloudrunv2.JobTemplateTemplateContainerEnvArgs{
Name: pulumi.String("latestdclsecret"),
ValueSource: &cloudrunv2.JobTemplateTemplateContainerEnvValueSourceArgs{
SecretKeyRef: &cloudrunv2.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs{
Secret: secret.SecretId,
Version: pulumi.String("1"),
},
},
},
},
VolumeMounts: cloudrunv2.JobTemplateTemplateContainerVolumeMountArray{
&cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs{
Name: pulumi.String("cloudsql"),
MountPath: pulumi.String("/cloudsql"),
},
},
},
},
},
},
})
if err != nil {
return err
}
project, err := organizations.LookupProject(ctx, nil, nil)
if err != nil {
return err
}
_, err = secretmanager.NewSecretVersion(ctx, "secret-version-data", &secretmanager.SecretVersionArgs{
Secret: secret.Name,
SecretData: pulumi.String("secret-data"),
})
if err != nil {
return err
}
_, err = secretmanager.NewSecretIamMember(ctx, "secret-access", &secretmanager.SecretIamMemberArgs{
SecretId: secret.ID(),
Role: pulumi.String("roles/secretmanager.secretAccessor"),
Member: pulumi.String(fmt.Sprintf("serviceAccount:%v-compute@developer.gserviceaccount.com", project.Number)),
}, pulumi.DependsOn([]pulumi.Resource{
secret,
}))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.secretmanager.Secret;
import com.pulumi.gcp.secretmanager.SecretArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
import com.pulumi.gcp.sql.DatabaseInstance;
import com.pulumi.gcp.sql.DatabaseInstanceArgs;
import com.pulumi.gcp.sql.inputs.DatabaseInstanceSettingsArgs;
import com.pulumi.gcp.cloudrunv2.Job;
import com.pulumi.gcp.cloudrunv2.JobArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.secretmanager.SecretVersion;
import com.pulumi.gcp.secretmanager.SecretVersionArgs;
import com.pulumi.gcp.secretmanager.SecretIamMember;
import com.pulumi.gcp.secretmanager.SecretIamMemberArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var secret = new Secret("secret", SecretArgs.builder()
.secretId("secret")
.replication(SecretReplicationArgs.builder()
.auto()
.build())
.build());
var instance = new DatabaseInstance("instance", DatabaseInstanceArgs.builder()
.region("us-central1")
.databaseVersion("MYSQL_5_7")
.settings(DatabaseInstanceSettingsArgs.builder()
.tier("db-f1-micro")
.build())
.deletionProtection("true")
.build());
var default_ = new Job("default", JobArgs.builder()
.location("us-central1")
.template(JobTemplateArgs.builder()
.template(JobTemplateTemplateArgs.builder()
.volumes(JobTemplateTemplateVolumeArgs.builder()
.name("cloudsql")
.cloudSqlInstance(JobTemplateTemplateVolumeCloudSqlInstanceArgs.builder()
.instances(instance.connectionName())
.build())
.build())
.containers(JobTemplateTemplateContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.envs(
JobTemplateTemplateContainerEnvArgs.builder()
.name("FOO")
.value("bar")
.build(),
JobTemplateTemplateContainerEnvArgs.builder()
.name("latestdclsecret")
.valueSource(JobTemplateTemplateContainerEnvValueSourceArgs.builder()
.secretKeyRef(JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs.builder()
.secret(secret.secretId())
.version("1")
.build())
.build())
.build())
.volumeMounts(JobTemplateTemplateContainerVolumeMountArgs.builder()
.name("cloudsql")
.mountPath("/cloudsql")
.build())
.build())
.build())
.build())
.build());
final var project = OrganizationsFunctions.getProject();
var secret_version_data = new SecretVersion("secret-version-data", SecretVersionArgs.builder()
.secret(secret.name())
.secretData("secret-data")
.build());
var secret_access = new SecretIamMember("secret-access", SecretIamMemberArgs.builder()
.secretId(secret.id())
.role("roles/secretmanager.secretAccessor")
.member(String.format("serviceAccount:%s-compute@developer.gserviceaccount.com", project.applyValue(getProjectResult -> getProjectResult.number())))
.build(), CustomResourceOptions.builder()
.dependsOn(secret)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
secret = gcp.secretmanager.Secret("secret",
secret_id="secret",
replication=gcp.secretmanager.SecretReplicationArgs(
auto=gcp.secretmanager.SecretReplicationAutoArgs(),
))
instance = gcp.sql.DatabaseInstance("instance",
region="us-central1",
database_version="MYSQL_5_7",
settings=gcp.sql.DatabaseInstanceSettingsArgs(
tier="db-f1-micro",
),
deletion_protection=True)
default = gcp.cloudrunv2.Job("default",
location="us-central1",
template=gcp.cloudrunv2.JobTemplateArgs(
template=gcp.cloudrunv2.JobTemplateTemplateArgs(
volumes=[gcp.cloudrunv2.JobTemplateTemplateVolumeArgs(
name="cloudsql",
cloud_sql_instance=gcp.cloudrunv2.JobTemplateTemplateVolumeCloudSqlInstanceArgs(
instances=[instance.connection_name],
),
)],
containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
envs=[
gcp.cloudrunv2.JobTemplateTemplateContainerEnvArgs(
name="FOO",
value="bar",
),
gcp.cloudrunv2.JobTemplateTemplateContainerEnvArgs(
name="latestdclsecret",
value_source=gcp.cloudrunv2.JobTemplateTemplateContainerEnvValueSourceArgs(
secret_key_ref=gcp.cloudrunv2.JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs(
secret=secret.secret_id,
version="1",
),
),
),
],
volume_mounts=[gcp.cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs(
name="cloudsql",
mount_path="/cloudsql",
)],
)],
),
))
project = gcp.organizations.get_project()
secret_version_data = gcp.secretmanager.SecretVersion("secret-version-data",
secret=secret.name,
secret_data="secret-data")
secret_access = gcp.secretmanager.SecretIamMember("secret-access",
secret_id=secret.id,
role="roles/secretmanager.secretAccessor",
member=f"serviceAccount:{project.number}-compute@developer.gserviceaccount.com",
opts=pulumi.ResourceOptions(depends_on=[secret]))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const secret = new gcp.secretmanager.Secret("secret", {
secretId: "secret",
replication: {
auto: {},
},
});
const instance = new gcp.sql.DatabaseInstance("instance", {
region: "us-central1",
databaseVersion: "MYSQL_5_7",
settings: {
tier: "db-f1-micro",
},
deletionProtection: true,
});
const _default = new gcp.cloudrunv2.Job("default", {
location: "us-central1",
template: {
template: {
volumes: [{
name: "cloudsql",
cloudSqlInstance: {
instances: [instance.connectionName],
},
}],
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
envs: [
{
name: "FOO",
value: "bar",
},
{
name: "latestdclsecret",
valueSource: {
secretKeyRef: {
secret: secret.secretId,
version: "1",
},
},
},
],
volumeMounts: [{
name: "cloudsql",
mountPath: "/cloudsql",
}],
}],
},
},
});
const project = gcp.organizations.getProject({});
const secret_version_data = new gcp.secretmanager.SecretVersion("secret-version-data", {
secret: secret.name,
secretData: "secret-data",
});
const secret_access = new gcp.secretmanager.SecretIamMember("secret-access", {
secretId: secret.id,
role: "roles/secretmanager.secretAccessor",
member: project.then(project => `serviceAccount:${project.number}-compute@developer.gserviceaccount.com`),
}, {
dependsOn: [secret],
});
resources:
default:
type: gcp:cloudrunv2:Job
properties:
location: us-central1
template:
template:
volumes:
- name: cloudsql
cloudSqlInstance:
instances:
- ${instance.connectionName}
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
envs:
- name: FOO
value: bar
- name: latestdclsecret
valueSource:
secretKeyRef:
secret: ${secret.secretId}
version: '1'
volumeMounts:
- name: cloudsql
mountPath: /cloudsql
secret:
type: gcp:secretmanager:Secret
properties:
secretId: secret
replication:
auto: {}
secret-version-data:
type: gcp:secretmanager:SecretVersion
properties:
secret: ${secret.name}
secretData: secret-data
secret-access:
type: gcp:secretmanager:SecretIamMember
properties:
secretId: ${secret.id}
role: roles/secretmanager.secretAccessor
member: serviceAccount:${project.number}-compute@developer.gserviceaccount.com
options:
dependson:
- ${secret}
instance:
type: gcp:sql:DatabaseInstance
properties:
region: us-central1
databaseVersion: MYSQL_5_7
settings:
tier: db-f1-micro
deletionProtection: 'true'
variables:
project:
fn::invoke:
Function: gcp:organizations:getProject
Arguments: {}
Cloudrunv2 Job Vpcaccess
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var customTestNetwork = new Gcp.Compute.Network("customTestNetwork", new()
{
AutoCreateSubnetworks = false,
});
var customTestSubnetwork = new Gcp.Compute.Subnetwork("customTestSubnetwork", new()
{
IpCidrRange = "10.2.0.0/28",
Region = "us-central1",
Network = customTestNetwork.Id,
});
var connector = new Gcp.VpcAccess.Connector("connector", new()
{
Subnet = new Gcp.VpcAccess.Inputs.ConnectorSubnetArgs
{
Name = customTestSubnetwork.Name,
},
MachineType = "e2-standard-4",
MinInstances = 2,
MaxInstances = 3,
Region = "us-central1",
});
var @default = new Gcp.CloudRunV2.Job("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
{
Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
{
Containers = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
},
},
VpcAccess = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVpcAccessArgs
{
Connector = connector.Id,
Egress = "ALL_TRAFFIC",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrunv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/vpcaccess"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
customTestNetwork, err := compute.NewNetwork(ctx, "customTestNetwork", &compute.NetworkArgs{
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
customTestSubnetwork, err := compute.NewSubnetwork(ctx, "customTestSubnetwork", &compute.SubnetworkArgs{
IpCidrRange: pulumi.String("10.2.0.0/28"),
Region: pulumi.String("us-central1"),
Network: customTestNetwork.ID(),
})
if err != nil {
return err
}
connector, err := vpcaccess.NewConnector(ctx, "connector", &vpcaccess.ConnectorArgs{
Subnet: &vpcaccess.ConnectorSubnetArgs{
Name: customTestSubnetwork.Name,
},
MachineType: pulumi.String("e2-standard-4"),
MinInstances: pulumi.Int(2),
MaxInstances: pulumi.Int(3),
Region: pulumi.String("us-central1"),
})
if err != nil {
return err
}
_, err = cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrunv2.JobTemplateArgs{
Template: &cloudrunv2.JobTemplateTemplateArgs{
Containers: cloudrunv2.JobTemplateTemplateContainerArray{
&cloudrunv2.JobTemplateTemplateContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
},
},
VpcAccess: &cloudrunv2.JobTemplateTemplateVpcAccessArgs{
Connector: connector.ID(),
Egress: pulumi.String("ALL_TRAFFIC"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.vpcaccess.Connector;
import com.pulumi.gcp.vpcaccess.ConnectorArgs;
import com.pulumi.gcp.vpcaccess.inputs.ConnectorSubnetArgs;
import com.pulumi.gcp.cloudrunv2.Job;
import com.pulumi.gcp.cloudrunv2.JobArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var customTestNetwork = new Network("customTestNetwork", NetworkArgs.builder()
.autoCreateSubnetworks(false)
.build());
var customTestSubnetwork = new Subnetwork("customTestSubnetwork", SubnetworkArgs.builder()
.ipCidrRange("10.2.0.0/28")
.region("us-central1")
.network(customTestNetwork.id())
.build());
var connector = new Connector("connector", ConnectorArgs.builder()
.subnet(ConnectorSubnetArgs.builder()
.name(customTestSubnetwork.name())
.build())
.machineType("e2-standard-4")
.minInstances(2)
.maxInstances(3)
.region("us-central1")
.build());
var default_ = new Job("default", JobArgs.builder()
.location("us-central1")
.template(JobTemplateArgs.builder()
.template(JobTemplateTemplateArgs.builder()
.containers(JobTemplateTemplateContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.build())
.vpcAccess(JobTemplateTemplateVpcAccessArgs.builder()
.connector(connector.id())
.egress("ALL_TRAFFIC")
.build())
.build())
.build())
.build());
}
}
import pulumi
import pulumi_gcp as gcp
custom_test_network = gcp.compute.Network("customTestNetwork", auto_create_subnetworks=False)
custom_test_subnetwork = gcp.compute.Subnetwork("customTestSubnetwork",
ip_cidr_range="10.2.0.0/28",
region="us-central1",
network=custom_test_network.id)
connector = gcp.vpcaccess.Connector("connector",
subnet=gcp.vpcaccess.ConnectorSubnetArgs(
name=custom_test_subnetwork.name,
),
machine_type="e2-standard-4",
min_instances=2,
max_instances=3,
region="us-central1")
default = gcp.cloudrunv2.Job("default",
location="us-central1",
template=gcp.cloudrunv2.JobTemplateArgs(
template=gcp.cloudrunv2.JobTemplateTemplateArgs(
containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
)],
vpc_access=gcp.cloudrunv2.JobTemplateTemplateVpcAccessArgs(
connector=connector.id,
egress="ALL_TRAFFIC",
),
),
))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const customTestNetwork = new gcp.compute.Network("customTestNetwork", {autoCreateSubnetworks: false});
const customTestSubnetwork = new gcp.compute.Subnetwork("customTestSubnetwork", {
ipCidrRange: "10.2.0.0/28",
region: "us-central1",
network: customTestNetwork.id,
});
const connector = new gcp.vpcaccess.Connector("connector", {
subnet: {
name: customTestSubnetwork.name,
},
machineType: "e2-standard-4",
minInstances: 2,
maxInstances: 3,
region: "us-central1",
});
const _default = new gcp.cloudrunv2.Job("default", {
location: "us-central1",
template: {
template: {
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
}],
vpcAccess: {
connector: connector.id,
egress: "ALL_TRAFFIC",
},
},
},
});
resources:
default:
type: gcp:cloudrunv2:Job
properties:
location: us-central1
template:
template:
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
vpcAccess:
connector: ${connector.id}
egress: ALL_TRAFFIC
connector:
type: gcp:vpcaccess:Connector
properties:
subnet:
name: ${customTestSubnetwork.name}
machineType: e2-standard-4
minInstances: 2
maxInstances: 3
region: us-central1
customTestSubnetwork:
type: gcp:compute:Subnetwork
properties:
ipCidrRange: 10.2.0.0/28
region: us-central1
network: ${customTestNetwork.id}
customTestNetwork:
type: gcp:compute:Network
properties:
autoCreateSubnetworks: false
Cloudrunv2 Job Directvpc
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CloudRunV2.Job("default", new()
{
Location = "us-central1",
LaunchStage = "BETA",
Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
{
Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
{
Containers = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/job",
},
},
VpcAccess = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVpcAccessArgs
{
NetworkInterfaces = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVpcAccessNetworkInterfaceArgs
{
Network = "default",
Subnetwork = "default",
Tags = new[]
{
"tag1",
"tag2",
"tag3",
},
},
},
Egress = "ALL_TRAFFIC",
},
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrunv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
Location: pulumi.String("us-central1"),
LaunchStage: pulumi.String("BETA"),
Template: &cloudrunv2.JobTemplateArgs{
Template: &cloudrunv2.JobTemplateTemplateArgs{
Containers: cloudrunv2.JobTemplateTemplateContainerArray{
&cloudrunv2.JobTemplateTemplateContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/job"),
},
},
VpcAccess: &cloudrunv2.JobTemplateTemplateVpcAccessArgs{
NetworkInterfaces: cloudrunv2.JobTemplateTemplateVpcAccessNetworkInterfaceArray{
&cloudrunv2.JobTemplateTemplateVpcAccessNetworkInterfaceArgs{
Network: pulumi.String("default"),
Subnetwork: pulumi.String("default"),
Tags: pulumi.StringArray{
pulumi.String("tag1"),
pulumi.String("tag2"),
pulumi.String("tag3"),
},
},
},
Egress: pulumi.String("ALL_TRAFFIC"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrunv2.Job;
import com.pulumi.gcp.cloudrunv2.JobArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVpcAccessArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Job("default", JobArgs.builder()
.location("us-central1")
.launchStage("BETA")
.template(JobTemplateArgs.builder()
.template(JobTemplateTemplateArgs.builder()
.containers(JobTemplateTemplateContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/job")
.build())
.vpcAccess(JobTemplateTemplateVpcAccessArgs.builder()
.networkInterfaces(JobTemplateTemplateVpcAccessNetworkInterfaceArgs.builder()
.network("default")
.subnetwork("default")
.tags(
"tag1",
"tag2",
"tag3")
.build())
.egress("ALL_TRAFFIC")
.build())
.build())
.build())
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.cloudrunv2.Job("default",
location="us-central1",
launch_stage="BETA",
template=gcp.cloudrunv2.JobTemplateArgs(
template=gcp.cloudrunv2.JobTemplateTemplateArgs(
containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/job",
)],
vpc_access=gcp.cloudrunv2.JobTemplateTemplateVpcAccessArgs(
network_interfaces=[gcp.cloudrunv2.JobTemplateTemplateVpcAccessNetworkInterfaceArgs(
network="default",
subnetwork="default",
tags=[
"tag1",
"tag2",
"tag3",
],
)],
egress="ALL_TRAFFIC",
),
),
))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.cloudrunv2.Job("default", {
location: "us-central1",
launchStage: "BETA",
template: {
template: {
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/job",
}],
vpcAccess: {
networkInterfaces: [{
network: "default",
subnetwork: "default",
tags: [
"tag1",
"tag2",
"tag3",
],
}],
egress: "ALL_TRAFFIC",
},
},
},
});
resources:
default:
type: gcp:cloudrunv2:Job
properties:
location: us-central1
launchStage: BETA
template:
template:
containers:
- image: us-docker.pkg.dev/cloudrun/container/job
vpcAccess:
networkInterfaces:
- network: default
subnetwork: default
tags:
- tag1
- tag2
- tag3
egress: ALL_TRAFFIC
Cloudrunv2 Job Secret
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var secret = new Gcp.SecretManager.Secret("secret", new()
{
SecretId = "secret",
Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
{
Auto = null,
},
});
var secret_version_data = new Gcp.SecretManager.SecretVersion("secret-version-data", new()
{
Secret = secret.Name,
SecretData = "secret-data",
});
var project = Gcp.Organizations.GetProject.Invoke();
var secret_access = new Gcp.SecretManager.SecretIamMember("secret-access", new()
{
SecretId = secret.Id,
Role = "roles/secretmanager.secretAccessor",
Member = $"serviceAccount:{project.Apply(getProjectResult => getProjectResult.Number)}-compute@developer.gserviceaccount.com",
}, new CustomResourceOptions
{
DependsOn = new[]
{
secret,
},
});
var @default = new Gcp.CloudRunV2.Job("default", new()
{
Location = "us-central1",
Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
{
Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
{
Volumes = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeArgs
{
Name = "a-volume",
Secret = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeSecretArgs
{
Secret = secret.SecretId,
DefaultMode = 292,
Items = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeSecretItemArgs
{
Version = "1",
Path = "my-secret",
Mode = 256,
},
},
},
},
},
Containers = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
VolumeMounts = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerVolumeMountArgs
{
Name = "a-volume",
MountPath = "/secrets",
},
},
},
},
},
},
}, new CustomResourceOptions
{
DependsOn = new[]
{
secret_version_data,
secret_access,
},
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrunv2"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/organizations"
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/secretmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
secret, err := secretmanager.NewSecret(ctx, "secret", &secretmanager.SecretArgs{
SecretId: pulumi.String("secret"),
Replication: &secretmanager.SecretReplicationArgs{
Auto: nil,
},
})
if err != nil {
return err
}
_, err = secretmanager.NewSecretVersion(ctx, "secret-version-data", &secretmanager.SecretVersionArgs{
Secret: secret.Name,
SecretData: pulumi.String("secret-data"),
})
if err != nil {
return err
}
project, err := organizations.LookupProject(ctx, nil, nil)
if err != nil {
return err
}
_, err = secretmanager.NewSecretIamMember(ctx, "secret-access", &secretmanager.SecretIamMemberArgs{
SecretId: secret.ID(),
Role: pulumi.String("roles/secretmanager.secretAccessor"),
Member: pulumi.String(fmt.Sprintf("serviceAccount:%v-compute@developer.gserviceaccount.com", project.Number)),
}, pulumi.DependsOn([]pulumi.Resource{
secret,
}))
if err != nil {
return err
}
_, err = cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
Location: pulumi.String("us-central1"),
Template: &cloudrunv2.JobTemplateArgs{
Template: &cloudrunv2.JobTemplateTemplateArgs{
Volumes: cloudrunv2.JobTemplateTemplateVolumeArray{
&cloudrunv2.JobTemplateTemplateVolumeArgs{
Name: pulumi.String("a-volume"),
Secret: &cloudrunv2.JobTemplateTemplateVolumeSecretArgs{
Secret: secret.SecretId,
DefaultMode: pulumi.Int(292),
Items: cloudrunv2.JobTemplateTemplateVolumeSecretItemArray{
&cloudrunv2.JobTemplateTemplateVolumeSecretItemArgs{
Version: pulumi.String("1"),
Path: pulumi.String("my-secret"),
Mode: pulumi.Int(256),
},
},
},
},
},
Containers: cloudrunv2.JobTemplateTemplateContainerArray{
&cloudrunv2.JobTemplateTemplateContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
VolumeMounts: cloudrunv2.JobTemplateTemplateContainerVolumeMountArray{
&cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs{
Name: pulumi.String("a-volume"),
MountPath: pulumi.String("/secrets"),
},
},
},
},
},
},
}, pulumi.DependsOn([]pulumi.Resource{
secret_version_data,
secret_access,
}))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.secretmanager.Secret;
import com.pulumi.gcp.secretmanager.SecretArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
import com.pulumi.gcp.secretmanager.SecretVersion;
import com.pulumi.gcp.secretmanager.SecretVersionArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.secretmanager.SecretIamMember;
import com.pulumi.gcp.secretmanager.SecretIamMemberArgs;
import com.pulumi.gcp.cloudrunv2.Job;
import com.pulumi.gcp.cloudrunv2.JobArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var secret = new Secret("secret", SecretArgs.builder()
.secretId("secret")
.replication(SecretReplicationArgs.builder()
.auto()
.build())
.build());
var secret_version_data = new SecretVersion("secret-version-data", SecretVersionArgs.builder()
.secret(secret.name())
.secretData("secret-data")
.build());
final var project = OrganizationsFunctions.getProject();
var secret_access = new SecretIamMember("secret-access", SecretIamMemberArgs.builder()
.secretId(secret.id())
.role("roles/secretmanager.secretAccessor")
.member(String.format("serviceAccount:%s-compute@developer.gserviceaccount.com", project.applyValue(getProjectResult -> getProjectResult.number())))
.build(), CustomResourceOptions.builder()
.dependsOn(secret)
.build());
var default_ = new Job("default", JobArgs.builder()
.location("us-central1")
.template(JobTemplateArgs.builder()
.template(JobTemplateTemplateArgs.builder()
.volumes(JobTemplateTemplateVolumeArgs.builder()
.name("a-volume")
.secret(JobTemplateTemplateVolumeSecretArgs.builder()
.secret(secret.secretId())
.defaultMode(292)
.items(JobTemplateTemplateVolumeSecretItemArgs.builder()
.version("1")
.path("my-secret")
.mode(256)
.build())
.build())
.build())
.containers(JobTemplateTemplateContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.volumeMounts(JobTemplateTemplateContainerVolumeMountArgs.builder()
.name("a-volume")
.mountPath("/secrets")
.build())
.build())
.build())
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(
secret_version_data,
secret_access)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
secret = gcp.secretmanager.Secret("secret",
secret_id="secret",
replication=gcp.secretmanager.SecretReplicationArgs(
auto=gcp.secretmanager.SecretReplicationAutoArgs(),
))
secret_version_data = gcp.secretmanager.SecretVersion("secret-version-data",
secret=secret.name,
secret_data="secret-data")
project = gcp.organizations.get_project()
secret_access = gcp.secretmanager.SecretIamMember("secret-access",
secret_id=secret.id,
role="roles/secretmanager.secretAccessor",
member=f"serviceAccount:{project.number}-compute@developer.gserviceaccount.com",
opts=pulumi.ResourceOptions(depends_on=[secret]))
default = gcp.cloudrunv2.Job("default",
location="us-central1",
template=gcp.cloudrunv2.JobTemplateArgs(
template=gcp.cloudrunv2.JobTemplateTemplateArgs(
volumes=[gcp.cloudrunv2.JobTemplateTemplateVolumeArgs(
name="a-volume",
secret=gcp.cloudrunv2.JobTemplateTemplateVolumeSecretArgs(
secret=secret.secret_id,
default_mode=292,
items=[gcp.cloudrunv2.JobTemplateTemplateVolumeSecretItemArgs(
version="1",
path="my-secret",
mode=256,
)],
),
)],
containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
volume_mounts=[gcp.cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs(
name="a-volume",
mount_path="/secrets",
)],
)],
),
),
opts=pulumi.ResourceOptions(depends_on=[
secret_version_data,
secret_access,
]))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const secret = new gcp.secretmanager.Secret("secret", {
secretId: "secret",
replication: {
auto: {},
},
});
const secret_version_data = new gcp.secretmanager.SecretVersion("secret-version-data", {
secret: secret.name,
secretData: "secret-data",
});
const project = gcp.organizations.getProject({});
const secret_access = new gcp.secretmanager.SecretIamMember("secret-access", {
secretId: secret.id,
role: "roles/secretmanager.secretAccessor",
member: project.then(project => `serviceAccount:${project.number}-compute@developer.gserviceaccount.com`),
}, {
dependsOn: [secret],
});
const _default = new gcp.cloudrunv2.Job("default", {
location: "us-central1",
template: {
template: {
volumes: [{
name: "a-volume",
secret: {
secret: secret.secretId,
defaultMode: 292,
items: [{
version: "1",
path: "my-secret",
mode: 256,
}],
},
}],
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
volumeMounts: [{
name: "a-volume",
mountPath: "/secrets",
}],
}],
},
},
}, {
dependsOn: [
secret_version_data,
secret_access,
],
});
resources:
default:
type: gcp:cloudrunv2:Job
properties:
location: us-central1
template:
template:
volumes:
- name: a-volume
secret:
secret: ${secret.secretId}
defaultMode: 292
items:
- version: '1'
path: my-secret
mode: 256
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
volumeMounts:
- name: a-volume
mountPath: /secrets
options:
dependson:
- ${["secret-version-data"]}
- ${["secret-access"]}
secret:
type: gcp:secretmanager:Secret
properties:
secretId: secret
replication:
auto: {}
secret-version-data:
type: gcp:secretmanager:SecretVersion
properties:
secret: ${secret.name}
secretData: secret-data
secret-access:
type: gcp:secretmanager:SecretIamMember
properties:
secretId: ${secret.id}
role: roles/secretmanager.secretAccessor
member: serviceAccount:${project.number}-compute@developer.gserviceaccount.com
options:
dependson:
- ${secret}
variables:
project:
fn::invoke:
Function: gcp:organizations:getProject
Arguments: {}
Cloudrunv2 Job Emptydir
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.CloudRunV2.Job("default", new()
{
Location = "us-central1",
LaunchStage = "BETA",
Template = new Gcp.CloudRunV2.Inputs.JobTemplateArgs
{
Template = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateArgs
{
Containers = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerArgs
{
Image = "us-docker.pkg.dev/cloudrun/container/hello",
VolumeMounts = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateContainerVolumeMountArgs
{
Name = "empty-dir-volume",
MountPath = "/mnt",
},
},
},
},
Volumes = new[]
{
new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeArgs
{
Name = "empty-dir-volume",
EmptyDir = new Gcp.CloudRunV2.Inputs.JobTemplateTemplateVolumeEmptyDirArgs
{
Medium = "MEMORY",
SizeLimit = "128Mi",
},
},
},
},
},
}, new CustomResourceOptions
{
Provider = google_beta,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudrunv2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudrunv2.NewJob(ctx, "default", &cloudrunv2.JobArgs{
Location: pulumi.String("us-central1"),
LaunchStage: pulumi.String("BETA"),
Template: &cloudrunv2.JobTemplateArgs{
Template: &cloudrunv2.JobTemplateTemplateArgs{
Containers: cloudrunv2.JobTemplateTemplateContainerArray{
&cloudrunv2.JobTemplateTemplateContainerArgs{
Image: pulumi.String("us-docker.pkg.dev/cloudrun/container/hello"),
VolumeMounts: cloudrunv2.JobTemplateTemplateContainerVolumeMountArray{
&cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs{
Name: pulumi.String("empty-dir-volume"),
MountPath: pulumi.String("/mnt"),
},
},
},
},
Volumes: cloudrunv2.JobTemplateTemplateVolumeArray{
&cloudrunv2.JobTemplateTemplateVolumeArgs{
Name: pulumi.String("empty-dir-volume"),
EmptyDir: &cloudrunv2.JobTemplateTemplateVolumeEmptyDirArgs{
Medium: pulumi.String("MEMORY"),
SizeLimit: pulumi.String("128Mi"),
},
},
},
},
},
}, pulumi.Provider(google_beta))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrunv2.Job;
import com.pulumi.gcp.cloudrunv2.JobArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateArgs;
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Job("default", JobArgs.builder()
.location("us-central1")
.launchStage("BETA")
.template(JobTemplateArgs.builder()
.template(JobTemplateTemplateArgs.builder()
.containers(JobTemplateTemplateContainerArgs.builder()
.image("us-docker.pkg.dev/cloudrun/container/hello")
.volumeMounts(JobTemplateTemplateContainerVolumeMountArgs.builder()
.name("empty-dir-volume")
.mountPath("/mnt")
.build())
.build())
.volumes(JobTemplateTemplateVolumeArgs.builder()
.name("empty-dir-volume")
.emptyDir(JobTemplateTemplateVolumeEmptyDirArgs.builder()
.medium("MEMORY")
.sizeLimit("128Mi")
.build())
.build())
.build())
.build())
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.cloudrunv2.Job("default",
location="us-central1",
launch_stage="BETA",
template=gcp.cloudrunv2.JobTemplateArgs(
template=gcp.cloudrunv2.JobTemplateTemplateArgs(
containers=[gcp.cloudrunv2.JobTemplateTemplateContainerArgs(
image="us-docker.pkg.dev/cloudrun/container/hello",
volume_mounts=[gcp.cloudrunv2.JobTemplateTemplateContainerVolumeMountArgs(
name="empty-dir-volume",
mount_path="/mnt",
)],
)],
volumes=[gcp.cloudrunv2.JobTemplateTemplateVolumeArgs(
name="empty-dir-volume",
empty_dir=gcp.cloudrunv2.JobTemplateTemplateVolumeEmptyDirArgs(
medium="MEMORY",
size_limit="128Mi",
),
)],
),
),
opts=pulumi.ResourceOptions(provider=google_beta))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.cloudrunv2.Job("default", {
location: "us-central1",
launchStage: "BETA",
template: {
template: {
containers: [{
image: "us-docker.pkg.dev/cloudrun/container/hello",
volumeMounts: [{
name: "empty-dir-volume",
mountPath: "/mnt",
}],
}],
volumes: [{
name: "empty-dir-volume",
emptyDir: {
medium: "MEMORY",
sizeLimit: "128Mi",
},
}],
},
},
}, {
provider: google_beta,
});
resources:
default:
type: gcp:cloudrunv2:Job
properties:
location: us-central1
launchStage: BETA
template:
template:
containers:
- image: us-docker.pkg.dev/cloudrun/container/hello
volumeMounts:
- name: empty-dir-volume
mountPath: /mnt
volumes:
- name: empty-dir-volume
emptyDir:
medium: MEMORY
sizeLimit: 128Mi
options:
provider: ${["google-beta"]}
Create Job Resource
new Job(name: string, args: JobArgs, opts?: CustomResourceOptions);
@overload
def Job(resource_name: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
binary_authorization: Optional[JobBinaryAuthorizationArgs] = None,
client: Optional[str] = None,
client_version: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
launch_stage: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
template: Optional[JobTemplateArgs] = None)
@overload
def Job(resource_name: str,
args: JobArgs,
opts: Optional[ResourceOptions] = None)
func NewJob(ctx *Context, name string, args JobArgs, opts ...ResourceOption) (*Job, error)
public Job(string name, JobArgs args, CustomResourceOptions? opts = null)
type: gcp:cloudrunv2:Job
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args JobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Job Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Job resource accepts the following input properties:
- Template
Job
Template The template used to create executions for this Job. Structure is documented below.
- Annotations Dictionary<string, string>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Settings for the Binary Authorization feature. Structure is documented below.
- Client string
Arbitrary identifier for the API client.
- Client
Version string Arbitrary version identifier for the API client.
- Labels Dictionary<string, string>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- Launch
Stage string The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- Location string
The location of the cloud run job
- Name string
Name of the Job.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Template
Job
Template Args The template used to create executions for this Job. Structure is documented below.
- Annotations map[string]string
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Args Settings for the Binary Authorization feature. Structure is documented below.
- Client string
Arbitrary identifier for the API client.
- Client
Version string Arbitrary version identifier for the API client.
- Labels map[string]string
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- Launch
Stage string The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- Location string
The location of the cloud run job
- Name string
Name of the Job.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- template
Job
Template The template used to create executions for this Job. Structure is documented below.
- annotations Map<String,String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Settings for the Binary Authorization feature. Structure is documented below.
- client String
Arbitrary identifier for the API client.
- client
Version String Arbitrary version identifier for the API client.
- labels Map<String,String>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- launch
Stage String The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- location String
The location of the cloud run job
- name String
Name of the Job.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- template
Job
Template The template used to create executions for this Job. Structure is documented below.
- annotations {[key: string]: string}
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Settings for the Binary Authorization feature. Structure is documented below.
- client string
Arbitrary identifier for the API client.
- client
Version string Arbitrary version identifier for the API client.
- labels {[key: string]: string}
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- launch
Stage string The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- location string
The location of the cloud run job
- name string
Name of the Job.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- template
Job
Template Args The template used to create executions for this Job. Structure is documented below.
- annotations Mapping[str, str]
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Args Settings for the Binary Authorization feature. Structure is documented below.
- client str
Arbitrary identifier for the API client.
- client_
version str Arbitrary version identifier for the API client.
- labels Mapping[str, str]
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- launch_
stage str The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- location str
The location of the cloud run job
- name str
Name of the Job.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- template Property Map
The template used to create executions for this Job. Structure is documented below.
- annotations Map<String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Property Map
Settings for the Binary Authorization feature. Structure is documented below.
- client String
Arbitrary identifier for the API client.
- client
Version String Arbitrary version identifier for the API client.
- labels Map<String>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- launch
Stage String The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- location String
The location of the cloud run job
- name String
Name of the Job.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Job resource produces the following output properties:
- Conditions
List<Job
Condition> The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- Create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Creator string
Email address of the authenticated creator.
- Delete
Time string The deletion time.
- Etag string
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- Execution
Count int Number of executions created for this job.
- Expire
Time string For a deleted resource, the time after which it will be permamently deleted.
- Generation string
A number that monotonically increases every time the user modifies the desired state.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Modifier string Email address of the last authenticated modifier.
- Latest
Created List<JobExecutions Latest Created Execution> Name of the last created execution. Structure is documented below.
- Observed
Generation string The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- Reconciling bool
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- Terminal
Conditions List<JobTerminal Condition> The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- Uid string
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- Update
Time string The last-modified time.
- Conditions
[]Job
Condition The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- Create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Creator string
Email address of the authenticated creator.
- Delete
Time string The deletion time.
- Etag string
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- Execution
Count int Number of executions created for this job.
- Expire
Time string For a deleted resource, the time after which it will be permamently deleted.
- Generation string
A number that monotonically increases every time the user modifies the desired state.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Modifier string Email address of the last authenticated modifier.
- Latest
Created []JobExecutions Latest Created Execution Name of the last created execution. Structure is documented below.
- Observed
Generation string The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- Reconciling bool
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- Terminal
Conditions []JobTerminal Condition The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- Uid string
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- Update
Time string The last-modified time.
- conditions
List<Job
Condition> The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- create
Time String (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- creator String
Email address of the authenticated creator.
- delete
Time String The deletion time.
- etag String
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- execution
Count Integer Number of executions created for this job.
- expire
Time String For a deleted resource, the time after which it will be permamently deleted.
- generation String
A number that monotonically increases every time the user modifies the desired state.
- id String
The provider-assigned unique ID for this managed resource.
- last
Modifier String Email address of the last authenticated modifier.
- latest
Created List<JobExecutions Latest Created Execution> Name of the last created execution. Structure is documented below.
- observed
Generation String The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- reconciling Boolean
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- terminal
Conditions List<JobTerminal Condition> The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- uid String
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time String The last-modified time.
- conditions
Job
Condition[] The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- creator string
Email address of the authenticated creator.
- delete
Time string The deletion time.
- etag string
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- execution
Count number Number of executions created for this job.
- expire
Time string For a deleted resource, the time after which it will be permamently deleted.
- generation string
A number that monotonically increases every time the user modifies the desired state.
- id string
The provider-assigned unique ID for this managed resource.
- last
Modifier string Email address of the last authenticated modifier.
- latest
Created JobExecutions Latest Created Execution[] Name of the last created execution. Structure is documented below.
- observed
Generation string The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- reconciling boolean
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- terminal
Conditions JobTerminal Condition[] The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- uid string
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time string The last-modified time.
- conditions
Sequence[Job
Condition] The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- create_
time str (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- creator str
Email address of the authenticated creator.
- delete_
time str The deletion time.
- etag str
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- execution_
count int Number of executions created for this job.
- expire_
time str For a deleted resource, the time after which it will be permamently deleted.
- generation str
A number that monotonically increases every time the user modifies the desired state.
- id str
The provider-assigned unique ID for this managed resource.
- last_
modifier str Email address of the last authenticated modifier.
- latest_
created_ Sequence[Jobexecutions Latest Created Execution] Name of the last created execution. Structure is documented below.
- observed_
generation str The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- reconciling bool
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- terminal_
conditions Sequence[JobTerminal Condition] The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- uid str
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update_
time str The last-modified time.
- conditions List<Property Map>
The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- create
Time String (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- creator String
Email address of the authenticated creator.
- delete
Time String The deletion time.
- etag String
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- execution
Count Number Number of executions created for this job.
- expire
Time String For a deleted resource, the time after which it will be permamently deleted.
- generation String
A number that monotonically increases every time the user modifies the desired state.
- id String
The provider-assigned unique ID for this managed resource.
- last
Modifier String Email address of the last authenticated modifier.
- latest
Created List<Property Map>Executions Name of the last created execution. Structure is documented below.
- observed
Generation String The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- reconciling Boolean
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- terminal
Conditions List<Property Map> The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- uid String
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time String The last-modified time.
Look up Existing Job Resource
Get an existing Job resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: JobState, opts?: CustomResourceOptions): Job
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
binary_authorization: Optional[JobBinaryAuthorizationArgs] = None,
client: Optional[str] = None,
client_version: Optional[str] = None,
conditions: Optional[Sequence[JobConditionArgs]] = None,
create_time: Optional[str] = None,
creator: Optional[str] = None,
delete_time: Optional[str] = None,
etag: Optional[str] = None,
execution_count: Optional[int] = None,
expire_time: Optional[str] = None,
generation: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
last_modifier: Optional[str] = None,
latest_created_executions: Optional[Sequence[JobLatestCreatedExecutionArgs]] = None,
launch_stage: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
observed_generation: Optional[str] = None,
project: Optional[str] = None,
reconciling: Optional[bool] = None,
template: Optional[JobTemplateArgs] = None,
terminal_conditions: Optional[Sequence[JobTerminalConditionArgs]] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> Job
func GetJob(ctx *Context, name string, id IDInput, state *JobState, opts ...ResourceOption) (*Job, error)
public static Job Get(string name, Input<string> id, JobState? state, CustomResourceOptions? opts = null)
public static Job get(String name, Output<String> id, JobState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Annotations Dictionary<string, string>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Settings for the Binary Authorization feature. Structure is documented below.
- Client string
Arbitrary identifier for the API client.
- Client
Version string Arbitrary version identifier for the API client.
- Conditions
List<Job
Condition> The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- Create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Creator string
Email address of the authenticated creator.
- Delete
Time string The deletion time.
- Etag string
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- Execution
Count int Number of executions created for this job.
- Expire
Time string For a deleted resource, the time after which it will be permamently deleted.
- Generation string
A number that monotonically increases every time the user modifies the desired state.
- Labels Dictionary<string, string>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- Last
Modifier string Email address of the last authenticated modifier.
- Latest
Created List<JobExecutions Latest Created Execution> Name of the last created execution. Structure is documented below.
- Launch
Stage string The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- Location string
The location of the cloud run job
- Name string
Name of the Job.
- Observed
Generation string The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Reconciling bool
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- Template
Job
Template The template used to create executions for this Job. Structure is documented below.
- Terminal
Conditions List<JobTerminal Condition> The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- Uid string
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- Update
Time string The last-modified time.
- Annotations map[string]string
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Args Settings for the Binary Authorization feature. Structure is documented below.
- Client string
Arbitrary identifier for the API client.
- Client
Version string Arbitrary version identifier for the API client.
- Conditions
[]Job
Condition Args The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- Create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Creator string
Email address of the authenticated creator.
- Delete
Time string The deletion time.
- Etag string
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- Execution
Count int Number of executions created for this job.
- Expire
Time string For a deleted resource, the time after which it will be permamently deleted.
- Generation string
A number that monotonically increases every time the user modifies the desired state.
- Labels map[string]string
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- Last
Modifier string Email address of the last authenticated modifier.
- Latest
Created []JobExecutions Latest Created Execution Args Name of the last created execution. Structure is documented below.
- Launch
Stage string The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- Location string
The location of the cloud run job
- Name string
Name of the Job.
- Observed
Generation string The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Reconciling bool
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- Template
Job
Template Args The template used to create executions for this Job. Structure is documented below.
- Terminal
Conditions []JobTerminal Condition Args The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- Uid string
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- Update
Time string The last-modified time.
- annotations Map<String,String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Settings for the Binary Authorization feature. Structure is documented below.
- client String
Arbitrary identifier for the API client.
- client
Version String Arbitrary version identifier for the API client.
- conditions
List<Job
Condition> The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- create
Time String (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- creator String
Email address of the authenticated creator.
- delete
Time String The deletion time.
- etag String
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- execution
Count Integer Number of executions created for this job.
- expire
Time String For a deleted resource, the time after which it will be permamently deleted.
- generation String
A number that monotonically increases every time the user modifies the desired state.
- labels Map<String,String>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- last
Modifier String Email address of the last authenticated modifier.
- latest
Created List<JobExecutions Latest Created Execution> Name of the last created execution. Structure is documented below.
- launch
Stage String The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- location String
The location of the cloud run job
- name String
Name of the Job.
- observed
Generation String The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- reconciling Boolean
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- template
Job
Template The template used to create executions for this Job. Structure is documented below.
- terminal
Conditions List<JobTerminal Condition> The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- uid String
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time String The last-modified time.
- annotations {[key: string]: string}
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Settings for the Binary Authorization feature. Structure is documented below.
- client string
Arbitrary identifier for the API client.
- client
Version string Arbitrary version identifier for the API client.
- conditions
Job
Condition[] The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- creator string
Email address of the authenticated creator.
- delete
Time string The deletion time.
- etag string
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- execution
Count number Number of executions created for this job.
- expire
Time string For a deleted resource, the time after which it will be permamently deleted.
- generation string
A number that monotonically increases every time the user modifies the desired state.
- labels {[key: string]: string}
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- last
Modifier string Email address of the last authenticated modifier.
- latest
Created JobExecutions Latest Created Execution[] Name of the last created execution. Structure is documented below.
- launch
Stage string The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- location string
The location of the cloud run job
- name string
Name of the Job.
- observed
Generation string The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- reconciling boolean
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- template
Job
Template The template used to create executions for this Job. Structure is documented below.
- terminal
Conditions JobTerminal Condition[] The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- uid string
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time string The last-modified time.
- annotations Mapping[str, str]
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Job
Binary Authorization Args Settings for the Binary Authorization feature. Structure is documented below.
- client str
Arbitrary identifier for the API client.
- client_
version str Arbitrary version identifier for the API client.
- conditions
Sequence[Job
Condition Args] The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- create_
time str (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- creator str
Email address of the authenticated creator.
- delete_
time str The deletion time.
- etag str
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- execution_
count int Number of executions created for this job.
- expire_
time str For a deleted resource, the time after which it will be permamently deleted.
- generation str
A number that monotonically increases every time the user modifies the desired state.
- labels Mapping[str, str]
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- last_
modifier str Email address of the last authenticated modifier.
- latest_
created_ Sequence[Jobexecutions Latest Created Execution Args] Name of the last created execution. Structure is documented below.
- launch_
stage str The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- location str
The location of the cloud run job
- name str
Name of the Job.
- observed_
generation str The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- reconciling bool
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- template
Job
Template Args The template used to create executions for this Job. Structure is documented below.
- terminal_
conditions Sequence[JobTerminal Condition Args] The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- uid str
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update_
time str The last-modified time.
- annotations Map<String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.(Optional) Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected on new resources. All system annotations in v1 now have a corresponding field in v2 Job. This field follows Kubernetes annotations' namespacing, limits, and rules.- Property Map
Settings for the Binary Authorization feature. Structure is documented below.
- client String
Arbitrary identifier for the API client.
- client
Version String Arbitrary version identifier for the API client.
- conditions List<Property Map>
The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Job does not reach its desired state. See comments in reconciling for additional information on
reconciliation
process in Cloud Run. Structure is documented below.- create
Time String (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- creator String
Email address of the authenticated creator.
- delete
Time String The deletion time.
- etag String
A system-generated fingerprint for this version of the resource. May be used to detect modification conflict during updates.
- execution
Count Number Number of executions created for this job.
- expire
Time String For a deleted resource, the time after which it will be permamently deleted.
- generation String
A number that monotonically increases every time the user modifies the desired state.
- labels Map<String>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.(Optional) Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 Job.- last
Modifier String Email address of the last authenticated modifier.
- latest
Created List<Property Map>Executions Name of the last created execution. Structure is documented below.
- launch
Stage String The launch stage as defined by Google Cloud Platform Launch Stages. Cloud Run supports ALPHA, BETA, and GA. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input to allow use of preview features in that stage. On read (or output), describes whether the resource uses preview features. For example, if ALPHA is provided as input, but only BETA and GA-level features are used, this field will be BETA on output. Possible values are:
UNIMPLEMENTED
,PRELAUNCH
,EARLY_ACCESS
,ALPHA
,BETA
,GA
,DEPRECATED
.- location String
The location of the cloud run job
- name String
Name of the Job.
- observed
Generation String The generation of this Job. See comments in reconciling for additional information on reconciliation process in Cloud Run.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- reconciling Boolean
Returns true if the Job is currently being acted upon by the system to bring it into the desired state. When a new Job is created, or an existing one is updated, Cloud Run will asynchronously perform all necessary steps to bring the Job to the desired state. This process is called reconciliation. While reconciliation is in process, observedGeneration and latest_succeeded_execution, will have transient values that might mismatch the intended state: Once reconciliation is over (and this field is false), there are two possible outcomes: reconciliation succeeded and the state matches the Job, or there was an error, and reconciliation failed. This state can be found in terminalCondition.state. If reconciliation succeeded, the following fields will match: observedGeneration and generation, latest_succeeded_execution and latestCreatedExecution. If reconciliation failed, observedGeneration and latest_succeeded_execution will have the state of the last succeeded execution or empty for newly created Job. Additional information on the failure can be found in terminalCondition and conditions
- template Property Map
The template used to create executions for this Job. Structure is documented below.
- terminal
Conditions List<Property Map> The Condition of this Job, containing its readiness status, and detailed error information in case it did not reach the desired state Structure is documented below.
- uid String
Server assigned unique identifier for the Execution. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
- update
Time String The last-modified time.
Supporting Types
JobBinaryAuthorization, JobBinaryAuthorizationArgs
- Breakglass
Justification string If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
- Use
Default bool If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
- Breakglass
Justification string If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
- Use
Default bool If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
- breakglass
Justification String If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
- use
Default Boolean If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
- breakglass
Justification string If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
- use
Default boolean If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
- breakglass_
justification str If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
- use_
default bool If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
- breakglass
Justification String If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass
- use
Default Boolean If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled.
JobCondition, JobConditionArgs
- Execution
Reason string (Output) A reason for the execution condition.
- Last
Transition stringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Message string
(Output) Human readable message indicating details about the current status.
- Reason string
(Output) A common (service-level) reason for this condition.
- Revision
Reason string (Output) A reason for the revision condition.
- Severity string
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- State string
(Output) State of the condition.
- Type string
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- Execution
Reason string (Output) A reason for the execution condition.
- Last
Transition stringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Message string
(Output) Human readable message indicating details about the current status.
- Reason string
(Output) A common (service-level) reason for this condition.
- Revision
Reason string (Output) A reason for the revision condition.
- Severity string
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- State string
(Output) State of the condition.
- Type string
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- execution
Reason String (Output) A reason for the execution condition.
- last
Transition StringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- message String
(Output) Human readable message indicating details about the current status.
- reason String
(Output) A common (service-level) reason for this condition.
- revision
Reason String (Output) A reason for the revision condition.
- severity String
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- state String
(Output) State of the condition.
- type String
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- execution
Reason string (Output) A reason for the execution condition.
- last
Transition stringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- message string
(Output) Human readable message indicating details about the current status.
- reason string
(Output) A common (service-level) reason for this condition.
- revision
Reason string (Output) A reason for the revision condition.
- severity string
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- state string
(Output) State of the condition.
- type string
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- execution_
reason str (Output) A reason for the execution condition.
- last_
transition_ strtime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- message str
(Output) Human readable message indicating details about the current status.
- reason str
(Output) A common (service-level) reason for this condition.
- revision_
reason str (Output) A reason for the revision condition.
- severity str
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- state str
(Output) State of the condition.
- type str
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- execution
Reason String (Output) A reason for the execution condition.
- last
Transition StringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- message String
(Output) Human readable message indicating details about the current status.
- reason String
(Output) A common (service-level) reason for this condition.
- revision
Reason String (Output) A reason for the revision condition.
- severity String
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- state String
(Output) State of the condition.
- type String
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
JobLatestCreatedExecution, JobLatestCreatedExecutionArgs
- Completion
Time string (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Name string
Name of the Job.
- Completion
Time string (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Name string
Name of the Job.
- completion
Time String (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- create
Time String (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- name String
Name of the Job.
- completion
Time string (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- create
Time string (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- name string
Name of the Job.
- completion_
time str (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- create_
time str (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- name str
Name of the Job.
- completion
Time String (Output) Completion timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- create
Time String (Output) Creation timestamp of the execution. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- name String
Name of the Job.
JobTemplate, JobTemplateArgs
- Template
Job
Template Template Describes the task(s) that will be created when executing an execution Structure is documented below.
- Annotations Dictionary<string, string>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.- Labels Dictionary<string, string>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.- Parallelism int
Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
- Task
Count int Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
- Template
Job
Template Template Describes the task(s) that will be created when executing an execution Structure is documented below.
- Annotations map[string]string
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.- Labels map[string]string
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.- Parallelism int
Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
- Task
Count int Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
- template
Job
Template Template Describes the task(s) that will be created when executing an execution Structure is documented below.
- annotations Map<String,String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.- labels Map<String,String>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.- parallelism Integer
Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
- task
Count Integer Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
- template
Job
Template Template Describes the task(s) that will be created when executing an execution Structure is documented below.
- annotations {[key: string]: string}
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.- labels {[key: string]: string}
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.- parallelism number
Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
- task
Count number Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
- template
Job
Template Template Describes the task(s) that will be created when executing an execution Structure is documented below.
- annotations Mapping[str, str]
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.- labels Mapping[str, str]
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.- parallelism int
Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
- task_
count int Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
- template Property Map
Describes the task(s) that will be created when executing an execution Structure is documented below.
- annotations Map<String>
Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. Cloud Run API v2 does not support annotations with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system annotations in v1 now have a corresponding field in v2 ExecutionTemplate. This field follows Kubernetes annotations' namespacing, limits, and rules.- labels Map<String>
Unstructured key value map that can be used to organize and categorize objects. User-provided labels are shared with Google's billing system, so they can be used to filter, or break down billing charges by team, component, environment, state, etc. For more information, visit https://cloud.google.com/resource-manager/docs/creating-managing-labels or https://cloud.google.com/run/docs/configuring/labels. Cloud Run API v2 does not support labels with
run.googleapis.com
,cloud.googleapis.com
,serving.knative.dev
, orautoscaling.knative.dev
namespaces, and they will be rejected. All system labels in v1 now have a corresponding field in v2 ExecutionTemplate.- parallelism Number
Specifies the maximum desired number of tasks the execution should run at given time. Must be <= taskCount. When the job is run, if this field is 0 or unset, the maximum possible value will be used for that execution. The actual number of tasks running in steady state will be less than this number when there are fewer tasks waiting to be completed remaining, i.e. when the work left to do is less than max parallelism.
- task
Count Number Specifies the desired number of tasks the execution should run. Setting to 1 means that parallelism is limited to 1 and the success of that task signals the success of the execution. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
JobTemplateTemplate, JobTemplateTemplateArgs
- Containers
List<Job
Template Template Container> Holds the single container that defines the unit of execution for this task. Structure is documented below.
- Encryption
Key string A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
- Execution
Environment string The execution environment being used to host this Task. Possible values are:
EXECUTION_ENVIRONMENT_GEN1
,EXECUTION_ENVIRONMENT_GEN2
.- Max
Retries int Number of retries allowed per Task, before marking this Task failed.
- Service
Account string Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
- Timeout string
Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
- Volumes
List<Job
Template Template Volume> A list of Volumes to make available to containers. Structure is documented below.
- Vpc
Access JobTemplate Template Vpc Access VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
- Containers
[]Job
Template Template Container Holds the single container that defines the unit of execution for this task. Structure is documented below.
- Encryption
Key string A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
- Execution
Environment string The execution environment being used to host this Task. Possible values are:
EXECUTION_ENVIRONMENT_GEN1
,EXECUTION_ENVIRONMENT_GEN2
.- Max
Retries int Number of retries allowed per Task, before marking this Task failed.
- Service
Account string Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
- Timeout string
Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
- Volumes
[]Job
Template Template Volume A list of Volumes to make available to containers. Structure is documented below.
- Vpc
Access JobTemplate Template Vpc Access VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
- containers
List<Job
Template Template Container> Holds the single container that defines the unit of execution for this task. Structure is documented below.
- encryption
Key String A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
- execution
Environment String The execution environment being used to host this Task. Possible values are:
EXECUTION_ENVIRONMENT_GEN1
,EXECUTION_ENVIRONMENT_GEN2
.- max
Retries Integer Number of retries allowed per Task, before marking this Task failed.
- service
Account String Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
- timeout String
Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
- volumes
List<Job
Template Template Volume> A list of Volumes to make available to containers. Structure is documented below.
- vpc
Access JobTemplate Template Vpc Access VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
- containers
Job
Template Template Container[] Holds the single container that defines the unit of execution for this task. Structure is documented below.
- encryption
Key string A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
- execution
Environment string The execution environment being used to host this Task. Possible values are:
EXECUTION_ENVIRONMENT_GEN1
,EXECUTION_ENVIRONMENT_GEN2
.- max
Retries number Number of retries allowed per Task, before marking this Task failed.
- service
Account string Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
- timeout string
Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
- volumes
Job
Template Template Volume[] A list of Volumes to make available to containers. Structure is documented below.
- vpc
Access JobTemplate Template Vpc Access VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
- containers
Sequence[Job
Template Template Container] Holds the single container that defines the unit of execution for this task. Structure is documented below.
- encryption_
key str A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
- execution_
environment str The execution environment being used to host this Task. Possible values are:
EXECUTION_ENVIRONMENT_GEN1
,EXECUTION_ENVIRONMENT_GEN2
.- max_
retries int Number of retries allowed per Task, before marking this Task failed.
- service_
account str Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
- timeout str
Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
- volumes
Sequence[Job
Template Template Volume] A list of Volumes to make available to containers. Structure is documented below.
- vpc_
access JobTemplate Template Vpc Access VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
- containers List<Property Map>
Holds the single container that defines the unit of execution for this task. Structure is documented below.
- encryption
Key String A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek
- execution
Environment String The execution environment being used to host this Task. Possible values are:
EXECUTION_ENVIRONMENT_GEN1
,EXECUTION_ENVIRONMENT_GEN2
.- max
Retries Number Number of retries allowed per Task, before marking this Task failed.
- service
Account String Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.
- timeout String
Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
- volumes List<Property Map>
A list of Volumes to make available to containers. Structure is documented below.
- vpc
Access Property Map VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc. Structure is documented below.
JobTemplateTemplateContainer, JobTemplateTemplateContainerArgs
- Image string
URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
- Args List<string>
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Commands List<string>
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Envs
List<Job
Template Template Container Env> List of environment variables to set in the container. Structure is documented below.
- Liveness
Probe JobTemplate Template Container Liveness Probe (Optional, Deprecated) Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- Name string
Name of the container specified as a DNS_LABEL.
- Ports
List<Job
Template Template Container Port> List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
- Resources
Job
Template Template Container Resources Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
- Startup
Probe JobTemplate Template Container Startup Probe (Optional, Deprecated) Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- Volume
Mounts List<JobTemplate Template Container Volume Mount> Volume to mount into the container's filesystem. Structure is documented below.
- Working
Dir string Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
- Image string
URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
- Args []string
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Commands []string
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- Envs
[]Job
Template Template Container Env List of environment variables to set in the container. Structure is documented below.
- Liveness
Probe JobTemplate Template Container Liveness Probe (Optional, Deprecated) Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- Name string
Name of the container specified as a DNS_LABEL.
- Ports
[]Job
Template Template Container Port List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
- Resources
Job
Template Template Container Resources Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
- Startup
Probe JobTemplate Template Container Startup Probe (Optional, Deprecated) Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- Volume
Mounts []JobTemplate Template Container Volume Mount Volume to mount into the container's filesystem. Structure is documented below.
- Working
Dir string Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
- image String
URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
- args List<String>
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- commands List<String>
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- envs
List<Job
Template Template Container Env> List of environment variables to set in the container. Structure is documented below.
- liveness
Probe JobTemplate Template Container Liveness Probe (Optional, Deprecated) Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- name String
Name of the container specified as a DNS_LABEL.
- ports
List<Job
Template Template Container Port> List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
- resources
Job
Template Template Container Resources Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
- startup
Probe JobTemplate Template Container Startup Probe (Optional, Deprecated) Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- volume
Mounts List<JobTemplate Template Container Volume Mount> Volume to mount into the container's filesystem. Structure is documented below.
- working
Dir String Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
- image string
URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
- args string[]
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- commands string[]
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- envs
Job
Template Template Container Env[] List of environment variables to set in the container. Structure is documented below.
- liveness
Probe JobTemplate Template Container Liveness Probe (Optional, Deprecated) Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- name string
Name of the container specified as a DNS_LABEL.
- ports
Job
Template Template Container Port[] List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
- resources
Job
Template Template Container Resources Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
- startup
Probe JobTemplate Template Container Startup Probe (Optional, Deprecated) Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- volume
Mounts JobTemplate Template Container Volume Mount[] Volume to mount into the container's filesystem. Structure is documented below.
- working
Dir string Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
- image str
URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
- args Sequence[str]
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- commands Sequence[str]
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- envs
Sequence[Job
Template Template Container Env] List of environment variables to set in the container. Structure is documented below.
- liveness_
probe JobTemplate Template Container Liveness Probe (Optional, Deprecated) Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- name str
Name of the container specified as a DNS_LABEL.
- ports
Sequence[Job
Template Template Container Port] List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
- resources
Job
Template Template Container Resources Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
- startup_
probe JobTemplate Template Container Startup Probe (Optional, Deprecated) Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- volume_
mounts Sequence[JobTemplate Template Container Volume Mount] Volume to mount into the container's filesystem. Structure is documented below.
- working_
dir str Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
- image String
URL of the Container image in Google Container Registry or Google Artifact Registry. More info: https://kubernetes.io/docs/concepts/containers/images
- args List<String>
Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- commands List<String>
Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
- envs List<Property Map>
List of environment variables to set in the container. Structure is documented below.
- liveness
Probe Property Map (Optional, Deprecated) Periodic probe of container liveness. Container will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.liveness_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- name String
Name of the container specified as a DNS_LABEL.
- ports List<Property Map>
List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on Structure is documented below.
- resources Property Map
Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Structure is documented below.
- startup
Probe Property Map (Optional, Deprecated) Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes This field is not supported in Cloud Run Job currently. Structure is documented below.
Warning:
startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.startup_probe
is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.- volume
Mounts List<Property Map> Volume to mount into the container's filesystem. Structure is documented below.
- working
Dir String Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image.
JobTemplateTemplateContainerEnv, JobTemplateTemplateContainerEnvArgs
- Name string
Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
- Value string
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
- Value
Source JobTemplate Template Container Env Value Source Source for the environment variable's value. Structure is documented below.
- Name string
Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
- Value string
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
- Value
Source JobTemplate Template Container Env Value Source Source for the environment variable's value. Structure is documented below.
- name String
Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
- value String
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
- value
Source JobTemplate Template Container Env Value Source Source for the environment variable's value. Structure is documented below.
- name string
Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
- value string
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
- value
Source JobTemplate Template Container Env Value Source Source for the environment variable's value. Structure is documented below.
- name str
Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
- value str
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
- value_
source JobTemplate Template Container Env Value Source Source for the environment variable's value. Structure is documented below.
- name String
Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.
- value String
Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any route environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "", and the maximum length is 32768 bytes
- value
Source Property Map Source for the environment variable's value. Structure is documented below.
JobTemplateTemplateContainerEnvValueSource, JobTemplateTemplateContainerEnvValueSourceArgs
- Secret
Key JobRef Template Template Container Env Value Source Secret Key Ref Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
- Secret
Key JobRef Template Template Container Env Value Source Secret Key Ref Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
- secret
Key JobRef Template Template Container Env Value Source Secret Key Ref Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
- secret
Key JobRef Template Template Container Env Value Source Secret Key Ref Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
- secret_
key_ Jobref Template Template Container Env Value Source Secret Key Ref Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
- secret
Key Property MapRef Selects a secret and a specific version from Cloud Secret Manager. Structure is documented below.
JobTemplateTemplateContainerEnvValueSourceSecretKeyRef, JobTemplateTemplateContainerEnvValueSourceSecretKeyRefArgs
- Secret string
The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
- Version string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- Secret string
The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
- Version string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- secret String
The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
- version String
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- secret string
The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
- version string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- secret str
The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
- version str
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
- secret String
The name of the secret in Cloud Secret Manager. Format: {secretName} if the secret is in the same project. projects/{project}/secrets/{secretName} if the secret is in a different project.
- version String
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version.
JobTemplateTemplateContainerLivenessProbe, JobTemplateTemplateContainerLivenessProbeArgs
- Failure
Threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- Http
Get JobTemplate Template Container Liveness Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- Initial
Delay intSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Period
Seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- Tcp
Socket JobTemplate Template Container Liveness Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- Timeout
Seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Failure
Threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- Http
Get JobTemplate Template Container Liveness Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- Initial
Delay intSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Period
Seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- Tcp
Socket JobTemplate Template Container Liveness Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- Timeout
Seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- failure
Threshold Integer Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- http
Get JobTemplate Template Container Liveness Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- initial
Delay IntegerSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- period
Seconds Integer How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- tcp
Socket JobTemplate Template Container Liveness Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- timeout
Seconds Integer Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- failure
Threshold number Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- http
Get JobTemplate Template Container Liveness Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- initial
Delay numberSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- period
Seconds number How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- tcp
Socket JobTemplate Template Container Liveness Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- timeout
Seconds number Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- failure_
threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- http_
get JobTemplate Template Container Liveness Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- initial_
delay_ intseconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- period_
seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- tcp_
socket JobTemplate Template Container Liveness Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- timeout_
seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- failure
Threshold Number Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- http
Get Property Map HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- initial
Delay NumberSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- period
Seconds Number How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- tcp
Socket Property Map TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- timeout
Seconds Number Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
JobTemplateTemplateContainerLivenessProbeHttpGet, JobTemplateTemplateContainerLivenessProbeHttpGetArgs
- Http
Headers List<JobTemplate Template Container Liveness Probe Http Get Http Header> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- Path string
Path to access on the HTTP server. Defaults to '/'.
- Http
Headers []JobTemplate Template Container Liveness Probe Http Get Http Header Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- Path string
Path to access on the HTTP server. Defaults to '/'.
- http
Headers List<JobTemplate Template Container Liveness Probe Http Get Http Header> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path String
Path to access on the HTTP server. Defaults to '/'.
- http
Headers JobTemplate Template Container Liveness Probe Http Get Http Header[] Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path string
Path to access on the HTTP server. Defaults to '/'.
- http_
headers Sequence[JobTemplate Template Container Liveness Probe Http Get Http Header] Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path str
Path to access on the HTTP server. Defaults to '/'.
- http
Headers List<Property Map> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path String
Path to access on the HTTP server. Defaults to '/'.
JobTemplateTemplateContainerLivenessProbeHttpGetHttpHeader, JobTemplateTemplateContainerLivenessProbeHttpGetHttpHeaderArgs
JobTemplateTemplateContainerLivenessProbeTcpSocket, JobTemplateTemplateContainerLivenessProbeTcpSocketArgs
- Port int
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- Port int
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- port Integer
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- port number
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- port int
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- port Number
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
JobTemplateTemplateContainerPort, JobTemplateTemplateContainerPortArgs
- Container
Port int Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
- Name string
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
- Container
Port int Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
- Name string
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
- container
Port Integer Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
- name String
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
- container
Port number Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
- name string
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
- container_
port int Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
- name str
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
- container
Port Number Port number the container listens on. This must be a valid TCP port number, 0 < containerPort < 65536.
- name String
If specified, used to specify which protocol to use. Allowed values are "http1" and "h2c".
JobTemplateTemplateContainerResources, JobTemplateTemplateContainerResourcesArgs
- Limits Dictionary<string, string>
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- Limits map[string]string
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- limits Map<String,String>
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- limits {[key: string]: string}
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- limits Mapping[str, str]
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- limits Map<String>
Only memory and CPU are supported. Note: The only supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
JobTemplateTemplateContainerStartupProbe, JobTemplateTemplateContainerStartupProbeArgs
- Failure
Threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- Http
Get JobTemplate Template Container Startup Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- Initial
Delay intSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Period
Seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- Tcp
Socket JobTemplate Template Container Startup Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- Timeout
Seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Failure
Threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- Http
Get JobTemplate Template Container Startup Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- Initial
Delay intSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- Period
Seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- Tcp
Socket JobTemplate Template Container Startup Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- Timeout
Seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- failure
Threshold Integer Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- http
Get JobTemplate Template Container Startup Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- initial
Delay IntegerSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- period
Seconds Integer How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- tcp
Socket JobTemplate Template Container Startup Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- timeout
Seconds Integer Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- failure
Threshold number Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- http
Get JobTemplate Template Container Startup Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- initial
Delay numberSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- period
Seconds number How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- tcp
Socket JobTemplate Template Container Startup Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- timeout
Seconds number Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- failure_
threshold int Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- http_
get JobTemplate Template Container Startup Probe Http Get HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- initial_
delay_ intseconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- period_
seconds int How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- tcp_
socket JobTemplate Template Container Startup Probe Tcp Socket TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- timeout_
seconds int Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- failure
Threshold Number Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.
- http
Get Property Map HTTPGet specifies the http request to perform. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- initial
Delay NumberSeconds Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
- period
Seconds Number How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe is 3600. Maximum value for startup probe is 240. Must be greater or equal than timeoutSeconds
- tcp
Socket Property Map TCPSocket specifies an action involving a TCP port. Exactly one of HTTPGet or TCPSocket must be specified. Structure is documented below.
- timeout
Seconds Number Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
JobTemplateTemplateContainerStartupProbeHttpGet, JobTemplateTemplateContainerStartupProbeHttpGetArgs
- Http
Headers List<JobTemplate Template Container Startup Probe Http Get Http Header> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- Path string
Path to access on the HTTP server. Defaults to '/'.
- Http
Headers []JobTemplate Template Container Startup Probe Http Get Http Header Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- Path string
Path to access on the HTTP server. Defaults to '/'.
- http
Headers List<JobTemplate Template Container Startup Probe Http Get Http Header> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path String
Path to access on the HTTP server. Defaults to '/'.
- http
Headers JobTemplate Template Container Startup Probe Http Get Http Header[] Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path string
Path to access on the HTTP server. Defaults to '/'.
- http_
headers Sequence[JobTemplate Template Container Startup Probe Http Get Http Header] Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path str
Path to access on the HTTP server. Defaults to '/'.
- http
Headers List<Property Map> Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below.
- path String
Path to access on the HTTP server. Defaults to '/'.
JobTemplateTemplateContainerStartupProbeHttpGetHttpHeader, JobTemplateTemplateContainerStartupProbeHttpGetHttpHeaderArgs
JobTemplateTemplateContainerStartupProbeTcpSocket, JobTemplateTemplateContainerStartupProbeTcpSocketArgs
- Port int
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- Port int
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- port Integer
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- port number
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- port int
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
- port Number
Port number to access on the container. Must be in the range 1 to 65535. If not specified, defaults to 8080.
JobTemplateTemplateContainerVolumeMount, JobTemplateTemplateContainerVolumeMountArgs
- Mount
Path string Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
- Name string
This must match the Name of a Volume.
- Mount
Path string Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
- Name string
This must match the Name of a Volume.
- mount
Path String Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
- name String
This must match the Name of a Volume.
- mount
Path string Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
- name string
This must match the Name of a Volume.
- mount_
path str Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
- name str
This must match the Name of a Volume.
- mount
Path String Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be /cloudsql. All instances defined in the Volume will be available as /cloudsql/[instance]. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
- name String
This must match the Name of a Volume.
JobTemplateTemplateVolume, JobTemplateTemplateVolumeArgs
- Name string
Volume's name.
- Cloud
Sql JobInstance Template Template Volume Cloud Sql Instance For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
- Empty
Dir JobTemplate Template Volume Empty Dir - Secret
Job
Template Template Volume Secret Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
- Name string
Volume's name.
- Cloud
Sql JobInstance Template Template Volume Cloud Sql Instance For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
- Empty
Dir JobTemplate Template Volume Empty Dir - Secret
Job
Template Template Volume Secret Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
- name String
Volume's name.
- cloud
Sql JobInstance Template Template Volume Cloud Sql Instance For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
- empty
Dir JobTemplate Template Volume Empty Dir - secret
Job
Template Template Volume Secret Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
- name string
Volume's name.
- cloud
Sql JobInstance Template Template Volume Cloud Sql Instance For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
- empty
Dir JobTemplate Template Volume Empty Dir - secret
Job
Template Template Volume Secret Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
- name str
Volume's name.
- cloud_
sql_ Jobinstance Template Template Volume Cloud Sql Instance For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
- empty_
dir JobTemplate Template Volume Empty Dir - secret
Job
Template Template Volume Secret Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
- name String
Volume's name.
- cloud
Sql Property MapInstance For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Structure is documented below.
- empty
Dir Property Map - secret Property Map
Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret Structure is documented below.
JobTemplateTemplateVolumeCloudSqlInstance, JobTemplateTemplateVolumeCloudSqlInstanceArgs
- Instances List<string>
The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
- Instances []string
The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
- instances List<String>
The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
- instances string[]
The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
- instances Sequence[str]
The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
- instances List<String>
The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
JobTemplateTemplateVolumeEmptyDir, JobTemplateTemplateVolumeEmptyDirArgs
- Medium string
The different types of medium supported for EmptyDir. Default value is
MEMORY
. Possible values are:MEMORY
.- Size
Limit string Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- Medium string
The different types of medium supported for EmptyDir. Default value is
MEMORY
. Possible values are:MEMORY
.- Size
Limit string Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- medium String
The different types of medium supported for EmptyDir. Default value is
MEMORY
. Possible values are:MEMORY
.- size
Limit String Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- medium string
The different types of medium supported for EmptyDir. Default value is
MEMORY
. Possible values are:MEMORY
.- size
Limit string Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- medium str
The different types of medium supported for EmptyDir. Default value is
MEMORY
. Possible values are:MEMORY
.- size_
limit str Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
- medium String
The different types of medium supported for EmptyDir. Default value is
MEMORY
. Possible values are:MEMORY
.- size
Limit String Limit on the storage usable by this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. This field's values are of the 'Quantity' k8s type: https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/quantity/. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir.
JobTemplateTemplateVolumeSecret, JobTemplateTemplateVolumeSecretArgs
- Secret string
The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
- Default
Mode int Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
- Items
List<Job
Template Template Volume Secret Item> If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
- Secret string
The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
- Default
Mode int Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
- Items
[]Job
Template Template Volume Secret Item If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
- secret String
The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
- default
Mode Integer Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
- items
List<Job
Template Template Volume Secret Item> If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
- secret string
The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
- default
Mode number Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
- items
Job
Template Template Volume Secret Item[] If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
- secret str
The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
- default_
mode int Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
- items
Sequence[Job
Template Template Volume Secret Item] If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
- secret String
The name of the secret in Cloud Secret Manager. Format: {secret} if the secret is in the same project. projects/{project}/secrets/{secret} if the secret is in a different project.
- default
Mode Number Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting.
- items List<Property Map>
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version. Structure is documented below.
JobTemplateTemplateVolumeSecretItem, JobTemplateTemplateVolumeSecretItemArgs
- Path string
The relative path of the secret in the container.
- Version string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
- Mode int
Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
- Path string
The relative path of the secret in the container.
- Version string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
- Mode int
Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
- path String
The relative path of the secret in the container.
- version String
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
- mode Integer
Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
- path string
The relative path of the secret in the container.
- version string
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
- mode number
Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
- path str
The relative path of the secret in the container.
- version str
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
- mode int
Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
- path String
The relative path of the secret in the container.
- version String
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version
- mode Number
Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.
JobTemplateTemplateVpcAccess, JobTemplateTemplateVpcAccessArgs
- Connector string
VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
- Egress string
Traffic VPC egress settings. Possible values are:
ALL_TRAFFIC
,PRIVATE_RANGES_ONLY
.- Network
Interfaces List<JobTemplate Template Vpc Access Network Interface> Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
- Connector string
VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
- Egress string
Traffic VPC egress settings. Possible values are:
ALL_TRAFFIC
,PRIVATE_RANGES_ONLY
.- Network
Interfaces []JobTemplate Template Vpc Access Network Interface Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
- connector String
VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
- egress String
Traffic VPC egress settings. Possible values are:
ALL_TRAFFIC
,PRIVATE_RANGES_ONLY
.- network
Interfaces List<JobTemplate Template Vpc Access Network Interface> Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
- connector string
VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
- egress string
Traffic VPC egress settings. Possible values are:
ALL_TRAFFIC
,PRIVATE_RANGES_ONLY
.- network
Interfaces JobTemplate Template Vpc Access Network Interface[] Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
- connector str
VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
- egress str
Traffic VPC egress settings. Possible values are:
ALL_TRAFFIC
,PRIVATE_RANGES_ONLY
.- network_
interfaces Sequence[JobTemplate Template Vpc Access Network Interface] Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
- connector String
VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number.
- egress String
Traffic VPC egress settings. Possible values are:
ALL_TRAFFIC
,PRIVATE_RANGES_ONLY
.- network
Interfaces List<Property Map> Direct VPC egress settings. Currently only single network interface is supported. Structure is documented below.
JobTemplateTemplateVpcAccessNetworkInterface, JobTemplateTemplateVpcAccessNetworkInterfaceArgs
- Network string
The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
- Subnetwork string
The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
- List<string>
Network tags applied to this Cloud Run job.
- Network string
The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
- Subnetwork string
The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
- []string
Network tags applied to this Cloud Run job.
- network String
The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
- subnetwork String
The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
- List<String>
Network tags applied to this Cloud Run job.
- network string
The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
- subnetwork string
The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
- string[]
Network tags applied to this Cloud Run job.
- network str
The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
- subnetwork str
The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
- Sequence[str]
Network tags applied to this Cloud Run job.
- network String
The VPC network that the Cloud Run resource will be able to send traffic to. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If network is not specified, it will be looked up from the subnetwork.
- subnetwork String
The VPC subnetwork that the Cloud Run resource will get IPs from. At least one of network or subnetwork must be specified. If both network and subnetwork are specified, the given VPC subnetwork must belong to the given VPC network. If subnetwork is not specified, the subnetwork with the same name with the network will be used.
- List<String>
Network tags applied to this Cloud Run job.
JobTerminalCondition, JobTerminalConditionArgs
- Execution
Reason string (Output) A reason for the execution condition.
- Last
Transition stringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Message string
(Output) Human readable message indicating details about the current status.
- Reason string
(Output) A common (service-level) reason for this condition.
- Revision
Reason string (Output) A reason for the revision condition.
- Severity string
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- State string
(Output) State of the condition.
- Type string
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- Execution
Reason string (Output) A reason for the execution condition.
- Last
Transition stringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- Message string
(Output) Human readable message indicating details about the current status.
- Reason string
(Output) A common (service-level) reason for this condition.
- Revision
Reason string (Output) A reason for the revision condition.
- Severity string
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- State string
(Output) State of the condition.
- Type string
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- execution
Reason String (Output) A reason for the execution condition.
- last
Transition StringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- message String
(Output) Human readable message indicating details about the current status.
- reason String
(Output) A common (service-level) reason for this condition.
- revision
Reason String (Output) A reason for the revision condition.
- severity String
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- state String
(Output) State of the condition.
- type String
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- execution
Reason string (Output) A reason for the execution condition.
- last
Transition stringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- message string
(Output) Human readable message indicating details about the current status.
- reason string
(Output) A common (service-level) reason for this condition.
- revision
Reason string (Output) A reason for the revision condition.
- severity string
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- state string
(Output) State of the condition.
- type string
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- execution_
reason str (Output) A reason for the execution condition.
- last_
transition_ strtime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- message str
(Output) Human readable message indicating details about the current status.
- reason str
(Output) A common (service-level) reason for this condition.
- revision_
reason str (Output) A reason for the revision condition.
- severity str
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- state str
(Output) State of the condition.
- type str
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
- execution
Reason String (Output) A reason for the execution condition.
- last
Transition StringTime (Output) Last time the condition transitioned from one status to another. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- message String
(Output) Human readable message indicating details about the current status.
- reason String
(Output) A common (service-level) reason for this condition.
- revision
Reason String (Output) A reason for the revision condition.
- severity String
(Output) How to interpret failures of this condition, one of Error, Warning, Info
- state String
(Output) State of the condition.
- type String
(Output) type is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting Types common to all resources include: * "Ready": True when the Resource is ready.
Import
Job can be imported using any of these accepted formats
$ pulumi import gcp:cloudrunv2/job:Job default projects/{{project}}/locations/{{location}}/jobs/{{name}}
$ pulumi import gcp:cloudrunv2/job:Job default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:cloudrunv2/job:Job default {{location}}/{{name}}
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.