MarkdownDescription:"Whether the job is disabled or not.",
},
"id":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The identifier of the job.",
},
"spec":schema.SingleNestedAttribute{
Attributes:map[string]schema.Attribute{
"concurrent":schema.BoolAttribute{
Computed:true,
MarkdownDescription:"Whether to allow concurrent executions for this job or not.",
},
"description":schema.StringAttribute{
Computed:true,
MarkdownDescription:"A textual description of the job.",
},
"environment":schema.MapAttribute{
ElementType:types.StringType,
Computed:true,
MarkdownDescription:"A set of environment variables mapping names to values to be defined during job execution.",
},
"identities":schema.SetAttribute{
Computed:true,
ElementType:types.StringType,
MarkdownDescription:"Set of eventline identities names to inject during job execution.",
},
"name":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The name of the job.",
},
"parameters":schema.ListNestedAttribute{
Computed:true,
NestedObject:schema.NestedAttributeObject{
Attributes:map[string]schema.Attribute{
"description":schema.StringAttribute{
Computed:true,
MarkdownDescription:"A textual description of the parameter.",
},
"environment":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The name of an environment variable to be used to inject the value of this parameter during execution.",
},
"name":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The name of the parameter.",
},
"type":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The type of the parameter. The following types are supported:\n - number: Either an integer or an IEEE 754 double precision floating point value.\n - integer: An integer.\n - string: A character string.\n - boolean: A boolean.",
},
"values":schema.ListAttribute{
Computed:true,
ElementType:types.StringType,
MarkdownDescription:"For parameters of type string, the list of valid values.",
},
},
},
},
"retention":schema.Int64Attribute{
Computed:true,
MarkdownDescription:"The number of days after which past executions of this job will be deleted. This value override the global job_retention setting.",
},
"runner":schema.SingleNestedAttribute{
Attributes:map[string]schema.Attribute{
"name":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The name of the runner.",
},
"identity":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The name of an identity to use for runners which require authentication. For example the ssh runner needs an identity to initiate an ssh connection.",
},
},
Computed:true,
MarkdownDescription:"The specification of the runner used to execute the job.",
},
"trigger":schema.SingleNestedAttribute{
Attributes:map[string]schema.Attribute{
"event":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The event to react to formatted as <connector>/<event>.",
},
"identity":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The name of an identity to use for events which require authentication. For example the github/push event needs an identity to create the GitHub hook used to listen to push events.",
},
},
Computed:true,
MarkdownDescription:"The specification of a trigger indicating when to execute the job.",
},
"steps":schema.ListNestedAttribute{
Computed:true,
MarkdownDescription:"A list of steps which will be executed sequentially.",
NestedObject:schema.NestedAttributeObject{
Attributes:map[string]schema.Attribute{
"code":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The fragment of code to execute for this step.",
},
"command":schema.SingleNestedAttribute{
Attributes:map[string]schema.Attribute{
"arguments":schema.ListAttribute{
Computed:true,
ElementType:types.StringType,
MarkdownDescription:"The list of arguments to pass to the command.",
},
"name":schema.StringAttribute{
Computed:true,
MarkdownDescription:"The name of the command.",
},
},
Computed:true,
MarkdownDescription:"The command to execute for this step.",
},
"label":schema.StringAttribute{
Computed:true,
MarkdownDescription:"A short description of the step which will be displayed on the web interface.",