...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets/storagetransfer_v1beta1_storagetransferjob.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets

     1label: Config Connector StorageTransferJob
     2markdownDescription: Creates yaml for a StorageTransferJob resource
     3insertText: |
     4  apiVersion: storagetransfer.cnrm.cloud.google.com/v1beta1
     5  kind: StorageTransferJob
     6  metadata:
     7    name: \${1:storagetransferjob-name}
     8  spec:
     9    description: \${2:Sample storage transfer job}
    10    schedule:
    11      startTimeOfDay:
    12        seconds: \${3:0}
    13        hours: \${4:0}
    14        minutes: \${5:0}
    15        nanos: \${6:0}
    16      scheduleEndDate:
    17        day: \${7:31}
    18        month: \${8:12}
    19        year: \${9:9999}
    20      scheduleStartDate:
    21        day: \${10:28}
    22        month: \${11:1}
    23        year: \${12:2020}
    24    status: \${13:ENABLED}
    25    transferSpec:
    26      gcsDataSink:
    27        bucketRef:
    28          name: \${14:[PROJECT_ID?]-storagetransferjob-dep1}
    29      gcsDataSource:
    30        bucketRef:
    31          name: \${15:[PROJECT_ID?]-storagetransferjob-dep2}
    32      objectConditions:
    33        maxTimeElapsedSinceLastModification: \${16:5s}
    34        minTimeElapsedSinceLastModification: \${17:2s}
    35      transferOptions:
    36        deleteObjectsUniqueInSink: \${18:false}
    37        overwriteObjectsAlreadyExistingInSink: \${19:true}

View as plain text