async function createDailyNearline30DayMigration() {
    // Runs the request and creates the job
    const [transferJob] = await client.createTransferJob({
      transferJob: {
        projectId,
        description,
        status: 'ENABLED',
        schedule: {
          scheduleStartDate: {
            day: startDate.getDate(),
            month: startDate.getMonth() + 1,
            year: startDate.getFullYear(),
          },
        },
        transferSpec: {
          gcsDataSource: {
            bucketName: gcsSourceBucket,
          },
          gcsDataSink: {
            bucketName: gcsSinkBucket,
          },
          objectConditions: {
            minTimeElapsedSinceLastModification: {
              seconds: 2592000, // 30 days
            },
          },
          transferOptions: {
            deleteObjectsFromSourceAfterTransfer: true,
          },
        },
      },
    });

    console.log(`Created transferJob: ${transferJob.name}`);
  }
Create a daily migration from a GCS bucket to another GCS bucket for
objects untouched for 30+ days.