Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mmv1/products/storagebatchoperations/Job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ examples:
vars:
bucket_name: tf-sample-bucket
job_id: tf-job
- name: storage_batch_operations_description
primary_resource_id: tf-job
ignore_read_extra:
- delete_protection
vars:
bucket_name: tf-sample-bucket
job_id: tf-job
virtual_fields:
- name: delete_protection
type: Boolean
Expand Down Expand Up @@ -287,3 +294,6 @@ properties:
immutable: true
validation:
function: validation.StringInSlice([]string{"SET", "UNSET"}, false)
- name: description
type: String
description: A description provided by the user for the job. Its max length is 1024 bytes when Unicode-encoded.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
resource "google_storage_bucket" "bucket" {
name = "{{index $.Vars "bucket_name"}}"
location = "us-central1"
force_destroy = true
}

resource "google_storage_batch_operations_job" "{{$.PrimaryResourceId}}" {
job_id = "{{index $.Vars "job_id"}}"
description = "A sample job description"
bucket_list {
buckets {
bucket = google_storage_bucket.bucket.name
prefix_list {
included_object_prefixes = [
"bkt"
]
}
}
}
put_metadata {
custom_metadata = {
"key" = "value"
}
}
delete_protection = false
}
Loading