-
Notifications
You must be signed in to change notification settings - Fork 64
/
zz_jobtrigger_types.go
executable file
·764 lines (588 loc) · 35.4 KB
/
zz_jobtrigger_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type ActionsObservation struct {
// Publish a message into a given Pub/Sub topic when the job completes.
// Structure is documented below.
PubSub []PubSubObservation `json:"pubSub,omitempty" tf:"pub_sub,omitempty"`
// Publish findings of a DlpJob to Data Catalog.
PublishFindingsToCloudDataCatalog []PublishFindingsToCloudDataCatalogParameters `json:"publishFindingsToCloudDataCatalog,omitempty" tf:"publish_findings_to_cloud_data_catalog,omitempty"`
// Publish the result summary of a DlpJob to the Cloud Security Command Center.
PublishSummaryToCscc []PublishSummaryToCsccParameters `json:"publishSummaryToCscc,omitempty" tf:"publish_summary_to_cscc,omitempty"`
// If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk
// Structure is documented below.
SaveFindings []SaveFindingsObservation `json:"saveFindings,omitempty" tf:"save_findings,omitempty"`
}
type ActionsParameters struct {
// Publish a message into a given Pub/Sub topic when the job completes.
// Structure is documented below.
// +kubebuilder:validation:Optional
PubSub []PubSubParameters `json:"pubSub,omitempty" tf:"pub_sub,omitempty"`
// Publish findings of a DlpJob to Data Catalog.
// +kubebuilder:validation:Optional
PublishFindingsToCloudDataCatalog []PublishFindingsToCloudDataCatalogParameters `json:"publishFindingsToCloudDataCatalog,omitempty" tf:"publish_findings_to_cloud_data_catalog,omitempty"`
// Publish the result summary of a DlpJob to the Cloud Security Command Center.
// +kubebuilder:validation:Optional
PublishSummaryToCscc []PublishSummaryToCsccParameters `json:"publishSummaryToCscc,omitempty" tf:"publish_summary_to_cscc,omitempty"`
// If set, the detailed findings will be persisted to the specified OutputStorageConfig. Only a single instance of this action can be specified. Compatible with: Inspect, Risk
// Structure is documented below.
// +kubebuilder:validation:Optional
SaveFindings []SaveFindingsParameters `json:"saveFindings,omitempty" tf:"save_findings,omitempty"`
}
type BigQueryOptionsObservation struct {
// Specifies the BigQuery fields that will be returned with findings.
// If not specified, no identifying fields will be returned for findings.
// Structure is documented below.
IdentifyingFields []IdentifyingFieldsObservation `json:"identifyingFields,omitempty" tf:"identifying_fields,omitempty"`
// Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted.
// If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be
// specified. Cannot be used in conjunction with TimespanConfig.
RowsLimit *float64 `json:"rowsLimit,omitempty" tf:"rows_limit,omitempty"`
// Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down.
// Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of
// rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
RowsLimitPercent *float64 `json:"rowsLimitPercent,omitempty" tf:"rows_limit_percent,omitempty"`
// How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
// If not specified, scanning would start from the top.
// Possible values are TOP and RANDOM_START.
SampleMethod *string `json:"sampleMethod,omitempty" tf:"sample_method,omitempty"`
// Set of files to scan.
// Structure is documented below.
TableReference []TableReferenceObservation `json:"tableReference,omitempty" tf:"table_reference,omitempty"`
}
type BigQueryOptionsParameters struct {
// Specifies the BigQuery fields that will be returned with findings.
// If not specified, no identifying fields will be returned for findings.
// Structure is documented below.
// +kubebuilder:validation:Optional
IdentifyingFields []IdentifyingFieldsParameters `json:"identifyingFields,omitempty" tf:"identifying_fields,omitempty"`
// Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted.
// If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be
// specified. Cannot be used in conjunction with TimespanConfig.
// +kubebuilder:validation:Optional
RowsLimit *float64 `json:"rowsLimit,omitempty" tf:"rows_limit,omitempty"`
// Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down.
// Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of
// rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
// +kubebuilder:validation:Optional
RowsLimitPercent *float64 `json:"rowsLimitPercent,omitempty" tf:"rows_limit_percent,omitempty"`
// How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
// If not specified, scanning would start from the top.
// Possible values are TOP and RANDOM_START.
// +kubebuilder:validation:Optional
SampleMethod *string `json:"sampleMethod,omitempty" tf:"sample_method,omitempty"`
// Set of files to scan.
// Structure is documented below.
// +kubebuilder:validation:Required
TableReference []TableReferenceParameters `json:"tableReference" tf:"table_reference,omitempty"`
}
type CloudStorageOptionsObservation struct {
// Max number of bytes to scan from a file. If a scanned file's size is bigger than this value
// then the rest of the bytes are omitted.
BytesLimitPerFile *float64 `json:"bytesLimitPerFile,omitempty" tf:"bytes_limit_per_file,omitempty"`
// Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down.
// Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
BytesLimitPerFilePercent *float64 `json:"bytesLimitPerFilePercent,omitempty" tf:"bytes_limit_per_file_percent,omitempty"`
// Set of files to scan.
// Structure is documented below.
FileSet []FileSetObservation `json:"fileSet,omitempty" tf:"file_set,omitempty"`
// List of file type groups to include in the scan. If empty, all files are scanned and available data
// format processors are applied. In addition, the binary content of the selected files is always scanned as well.
// Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified.
// Each value may be one of BINARY_FILE, TEXT_FILE, IMAGE, WORD, PDF, AVRO, CSV, and TSV.
FileTypes []*string `json:"fileTypes,omitempty" tf:"file_types,omitempty"`
// Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down.
// Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
FilesLimitPercent *float64 `json:"filesLimitPercent,omitempty" tf:"files_limit_percent,omitempty"`
// How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
// If not specified, scanning would start from the top.
// Possible values are TOP and RANDOM_START.
SampleMethod *string `json:"sampleMethod,omitempty" tf:"sample_method,omitempty"`
}
type CloudStorageOptionsParameters struct {
// Max number of bytes to scan from a file. If a scanned file's size is bigger than this value
// then the rest of the bytes are omitted.
// +kubebuilder:validation:Optional
BytesLimitPerFile *float64 `json:"bytesLimitPerFile,omitempty" tf:"bytes_limit_per_file,omitempty"`
// Max percentage of bytes to scan from a file. The rest are omitted. The number of bytes scanned is rounded down.
// Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
// +kubebuilder:validation:Optional
BytesLimitPerFilePercent *float64 `json:"bytesLimitPerFilePercent,omitempty" tf:"bytes_limit_per_file_percent,omitempty"`
// Set of files to scan.
// Structure is documented below.
// +kubebuilder:validation:Required
FileSet []FileSetParameters `json:"fileSet" tf:"file_set,omitempty"`
// List of file type groups to include in the scan. If empty, all files are scanned and available data
// format processors are applied. In addition, the binary content of the selected files is always scanned as well.
// Images are scanned only as binary if the specified region does not support image inspection and no fileTypes were specified.
// Each value may be one of BINARY_FILE, TEXT_FILE, IMAGE, WORD, PDF, AVRO, CSV, and TSV.
// +kubebuilder:validation:Optional
FileTypes []*string `json:"fileTypes,omitempty" tf:"file_types,omitempty"`
// Limits the number of files to scan to this percentage of the input FileSet. Number of files scanned is rounded down.
// Must be between 0 and 100, inclusively. Both 0 and 100 means no limit.
// +kubebuilder:validation:Optional
FilesLimitPercent *float64 `json:"filesLimitPercent,omitempty" tf:"files_limit_percent,omitempty"`
// How to sample bytes if not all bytes are scanned. Meaningful only when used in conjunction with bytesLimitPerFile.
// If not specified, scanning would start from the top.
// Possible values are TOP and RANDOM_START.
// +kubebuilder:validation:Optional
SampleMethod *string `json:"sampleMethod,omitempty" tf:"sample_method,omitempty"`
}
type DatastoreOptionsObservation struct {
// A representation of a Datastore kind.
// Structure is documented below.
Kind []KindObservation `json:"kind,omitempty" tf:"kind,omitempty"`
// Datastore partition ID. A partition ID identifies a grouping of entities. The grouping
// is always by project and namespace, however the namespace ID may be empty.
// Structure is documented below.
PartitionID []PartitionIDObservation `json:"partitionId,omitempty" tf:"partition_id,omitempty"`
}
type DatastoreOptionsParameters struct {
// A representation of a Datastore kind.
// Structure is documented below.
// +kubebuilder:validation:Required
Kind []KindParameters `json:"kind" tf:"kind,omitempty"`
// Datastore partition ID. A partition ID identifies a grouping of entities. The grouping
// is always by project and namespace, however the namespace ID may be empty.
// Structure is documented below.
// +kubebuilder:validation:Required
PartitionID []PartitionIDParameters `json:"partitionId" tf:"partition_id,omitempty"`
}
type FileSetObservation struct {
// The regex-filtered set of files to scan.
// Structure is documented below.
RegexFileSet []RegexFileSetObservation `json:"regexFileSet,omitempty" tf:"regex_file_set,omitempty"`
// The Cloud Storage url of the file(s) to scan, in the format gs://<bucket>/<path>. Trailing wildcard
// in the path is allowed.
// If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned
// non-recursively (content in sub-directories will not be scanned). This means that gs://mybucket/ is
// equivalent to gs://mybucket/*, and gs://mybucket/directory/ is equivalent to gs://mybucket/directory/*.
URL *string `json:"url,omitempty" tf:"url,omitempty"`
}
type FileSetParameters struct {
// The regex-filtered set of files to scan.
// Structure is documented below.
// +kubebuilder:validation:Optional
RegexFileSet []RegexFileSetParameters `json:"regexFileSet,omitempty" tf:"regex_file_set,omitempty"`
// The Cloud Storage url of the file(s) to scan, in the format gs://<bucket>/<path>. Trailing wildcard
// in the path is allowed.
// If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned
// non-recursively (content in sub-directories will not be scanned). This means that gs://mybucket/ is
// equivalent to gs://mybucket/*, and gs://mybucket/directory/ is equivalent to gs://mybucket/directory/*.
// +kubebuilder:validation:Optional
URL *string `json:"url,omitempty" tf:"url,omitempty"`
}
type IdentifyingFieldsObservation struct {
// Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery.
// For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was
// modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp
// field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column.
// For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the
// timestamp property does not exist or its value is empty or invalid.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type IdentifyingFieldsParameters struct {
// Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery.
// For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was
// modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp
// field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column.
// For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the
// timestamp property does not exist or its value is empty or invalid.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
}
type InspectJobObservation struct {
// A task to execute on the completion of a job.
// Structure is documented below.
Actions []ActionsObservation `json:"actions,omitempty" tf:"actions,omitempty"`
// The name of the template to run when this job is triggered.
InspectTemplateName *string `json:"inspectTemplateName,omitempty" tf:"inspect_template_name,omitempty"`
// Information on where to inspect
// Structure is documented below.
StorageConfig []StorageConfigObservation `json:"storageConfig,omitempty" tf:"storage_config,omitempty"`
}
type InspectJobParameters struct {
// A task to execute on the completion of a job.
// Structure is documented below.
// +kubebuilder:validation:Required
Actions []ActionsParameters `json:"actions" tf:"actions,omitempty"`
// The name of the template to run when this job is triggered.
// +kubebuilder:validation:Required
InspectTemplateName *string `json:"inspectTemplateName" tf:"inspect_template_name,omitempty"`
// Information on where to inspect
// Structure is documented below.
// +kubebuilder:validation:Required
StorageConfig []StorageConfigParameters `json:"storageConfig" tf:"storage_config,omitempty"`
}
type JobTriggerObservation struct {
// A description of the job trigger.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// User set display name of the job trigger.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// an identifier for the resource with format {{parent}}/jobTriggers/{{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Controls what and how to inspect for findings.
// Structure is documented below.
InspectJob []InspectJobObservation `json:"inspectJob,omitempty" tf:"inspect_job,omitempty"`
// The timestamp of the last time this trigger executed.
LastRunTime *string `json:"lastRunTime,omitempty" tf:"last_run_time,omitempty"`
// The resource name of the job trigger. Set by the server.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The parent of the trigger, either in the format projects/{{project}}
// or projects/{{project}}/locations/{{location}}
Parent *string `json:"parent,omitempty" tf:"parent,omitempty"`
// Whether the trigger is currently active.
// Default value is HEALTHY.
// Possible values are PAUSED, HEALTHY, and CANCELLED.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
// What event needs to occur for a new job to be started.
// Structure is documented below.
Triggers []TriggersObservation `json:"triggers,omitempty" tf:"triggers,omitempty"`
}
type JobTriggerParameters struct {
// A description of the job trigger.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// User set display name of the job trigger.
// +kubebuilder:validation:Optional
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// Controls what and how to inspect for findings.
// Structure is documented below.
// +kubebuilder:validation:Optional
InspectJob []InspectJobParameters `json:"inspectJob,omitempty" tf:"inspect_job,omitempty"`
// The parent of the trigger, either in the format projects/{{project}}
// or projects/{{project}}/locations/{{location}}
// +kubebuilder:validation:Optional
Parent *string `json:"parent,omitempty" tf:"parent,omitempty"`
// Whether the trigger is currently active.
// Default value is HEALTHY.
// Possible values are PAUSED, HEALTHY, and CANCELLED.
// +kubebuilder:validation:Optional
Status *string `json:"status,omitempty" tf:"status,omitempty"`
// What event needs to occur for a new job to be started.
// Structure is documented below.
// +kubebuilder:validation:Optional
Triggers []TriggersParameters `json:"triggers,omitempty" tf:"triggers,omitempty"`
}
type KindObservation struct {
// Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery.
// For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was
// modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp
// field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column.
// For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the
// timestamp property does not exist or its value is empty or invalid.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type KindParameters struct {
// Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery.
// For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was
// modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp
// field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column.
// For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the
// timestamp property does not exist or its value is empty or invalid.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
}
type OutputConfigObservation struct {
// Schema used for writing the findings for Inspect jobs. This field is only used for
// Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
// object. If appending to an existing table, any columns from the predefined schema
// that are missing will be added. No columns in the existing table will be deleted.
// If unspecified, then all available columns will be used for a new table or an (existing)
// table with no schema, and no changes will be made to an existing table that has a schema.
// Only for use with external storage.
// Possible values are BASIC_COLUMNS, GCS_COLUMNS, DATASTORE_COLUMNS, BIG_QUERY_COLUMNS, and ALL_COLUMNS.
OutputSchema *string `json:"outputSchema,omitempty" tf:"output_schema,omitempty"`
// Information on the location of the target BigQuery Table.
// Structure is documented below.
Table []TableObservation `json:"table,omitempty" tf:"table,omitempty"`
}
type OutputConfigParameters struct {
// Schema used for writing the findings for Inspect jobs. This field is only used for
// Inspect and must be unspecified for Risk jobs. Columns are derived from the Finding
// object. If appending to an existing table, any columns from the predefined schema
// that are missing will be added. No columns in the existing table will be deleted.
// If unspecified, then all available columns will be used for a new table or an (existing)
// table with no schema, and no changes will be made to an existing table that has a schema.
// Only for use with external storage.
// Possible values are BASIC_COLUMNS, GCS_COLUMNS, DATASTORE_COLUMNS, BIG_QUERY_COLUMNS, and ALL_COLUMNS.
// +kubebuilder:validation:Optional
OutputSchema *string `json:"outputSchema,omitempty" tf:"output_schema,omitempty"`
// Information on the location of the target BigQuery Table.
// Structure is documented below.
// +kubebuilder:validation:Required
Table []TableParameters `json:"table" tf:"table,omitempty"`
}
type PartitionIDObservation struct {
// If not empty, the ID of the namespace to which the entities belong.
NamespaceID *string `json:"namespaceId,omitempty" tf:"namespace_id,omitempty"`
// The Google Cloud Platform project ID of the project containing the table.
ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
}
type PartitionIDParameters struct {
// If not empty, the ID of the namespace to which the entities belong.
// +kubebuilder:validation:Optional
NamespaceID *string `json:"namespaceId,omitempty" tf:"namespace_id,omitempty"`
// The Google Cloud Platform project ID of the project containing the table.
// +kubebuilder:validation:Required
ProjectID *string `json:"projectId" tf:"project_id,omitempty"`
}
type PubSubObservation struct {
// Cloud Pub/Sub topic to send notifications to.
Topic *string `json:"topic,omitempty" tf:"topic,omitempty"`
}
type PubSubParameters struct {
// Cloud Pub/Sub topic to send notifications to.
// +kubebuilder:validation:Required
Topic *string `json:"topic" tf:"topic,omitempty"`
}
type PublishFindingsToCloudDataCatalogObservation struct {
}
type PublishFindingsToCloudDataCatalogParameters struct {
}
type PublishSummaryToCsccObservation struct {
}
type PublishSummaryToCsccParameters struct {
}
type RegexFileSetObservation struct {
// The name of a Cloud Storage bucket.
BucketName *string `json:"bucketName,omitempty" tf:"bucket_name,omitempty"`
// A list of regular expressions matching file paths to exclude. All files in the bucket that match at
// least one of these regular expressions will be excluded from the scan.
ExcludeRegex []*string `json:"excludeRegex,omitempty" tf:"exclude_regex,omitempty"`
// A list of regular expressions matching file paths to include. All files in the bucket
// that match at least one of these regular expressions will be included in the set of files,
// except for those that also match an item in excludeRegex. Leaving this field empty will
// match all files by default (this is equivalent to including .* in the list)
IncludeRegex []*string `json:"includeRegex,omitempty" tf:"include_regex,omitempty"`
}
type RegexFileSetParameters struct {
// The name of a Cloud Storage bucket.
// +kubebuilder:validation:Required
BucketName *string `json:"bucketName" tf:"bucket_name,omitempty"`
// A list of regular expressions matching file paths to exclude. All files in the bucket that match at
// least one of these regular expressions will be excluded from the scan.
// +kubebuilder:validation:Optional
ExcludeRegex []*string `json:"excludeRegex,omitempty" tf:"exclude_regex,omitempty"`
// A list of regular expressions matching file paths to include. All files in the bucket
// that match at least one of these regular expressions will be included in the set of files,
// except for those that also match an item in excludeRegex. Leaving this field empty will
// match all files by default (this is equivalent to including .* in the list)
// +kubebuilder:validation:Optional
IncludeRegex []*string `json:"includeRegex,omitempty" tf:"include_regex,omitempty"`
}
type SaveFindingsObservation struct {
// Information on where to store output
// Structure is documented below.
OutputConfig []OutputConfigObservation `json:"outputConfig,omitempty" tf:"output_config,omitempty"`
}
type SaveFindingsParameters struct {
// Information on where to store output
// Structure is documented below.
// +kubebuilder:validation:Required
OutputConfig []OutputConfigParameters `json:"outputConfig" tf:"output_config,omitempty"`
}
type ScheduleObservation struct {
// With this option a job is started a regular periodic basis. For example: every day (86400 seconds).
// A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs.
// This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
RecurrencePeriodDuration *string `json:"recurrencePeriodDuration,omitempty" tf:"recurrence_period_duration,omitempty"`
}
type ScheduleParameters struct {
// With this option a job is started a regular periodic basis. For example: every day (86400 seconds).
// A scheduled start time will be skipped if the previous execution has not ended when its scheduled time occurs.
// This value must be set to a time duration greater than or equal to 1 day and can be no longer than 60 days.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
// +kubebuilder:validation:Optional
RecurrencePeriodDuration *string `json:"recurrencePeriodDuration,omitempty" tf:"recurrence_period_duration,omitempty"`
}
type StorageConfigObservation struct {
// Options defining BigQuery table and row identifiers.
// Structure is documented below.
BigQueryOptions []BigQueryOptionsObservation `json:"bigQueryOptions,omitempty" tf:"big_query_options,omitempty"`
// Options defining a file or a set of files within a Google Cloud Storage bucket.
// Structure is documented below.
CloudStorageOptions []CloudStorageOptionsObservation `json:"cloudStorageOptions,omitempty" tf:"cloud_storage_options,omitempty"`
// Options defining a data set within Google Cloud Datastore.
// Structure is documented below.
DatastoreOptions []DatastoreOptionsObservation `json:"datastoreOptions,omitempty" tf:"datastore_options,omitempty"`
// Information on where to inspect
// Structure is documented below.
TimespanConfig []TimespanConfigObservation `json:"timespanConfig,omitempty" tf:"timespan_config,omitempty"`
}
type StorageConfigParameters struct {
// Options defining BigQuery table and row identifiers.
// Structure is documented below.
// +kubebuilder:validation:Optional
BigQueryOptions []BigQueryOptionsParameters `json:"bigQueryOptions,omitempty" tf:"big_query_options,omitempty"`
// Options defining a file or a set of files within a Google Cloud Storage bucket.
// Structure is documented below.
// +kubebuilder:validation:Optional
CloudStorageOptions []CloudStorageOptionsParameters `json:"cloudStorageOptions,omitempty" tf:"cloud_storage_options,omitempty"`
// Options defining a data set within Google Cloud Datastore.
// Structure is documented below.
// +kubebuilder:validation:Optional
DatastoreOptions []DatastoreOptionsParameters `json:"datastoreOptions,omitempty" tf:"datastore_options,omitempty"`
// Information on where to inspect
// Structure is documented below.
// +kubebuilder:validation:Optional
TimespanConfig []TimespanConfigParameters `json:"timespanConfig,omitempty" tf:"timespan_config,omitempty"`
}
type TableObservation struct {
// The dataset ID of the table.
DatasetID *string `json:"datasetId,omitempty" tf:"dataset_id,omitempty"`
// The Google Cloud Platform project ID of the project containing the table.
ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
// The name of the table.
TableID *string `json:"tableId,omitempty" tf:"table_id,omitempty"`
}
type TableParameters struct {
// The dataset ID of the table.
// +kubebuilder:validation:Required
DatasetID *string `json:"datasetId" tf:"dataset_id,omitempty"`
// The Google Cloud Platform project ID of the project containing the table.
// +kubebuilder:validation:Required
ProjectID *string `json:"projectId" tf:"project_id,omitempty"`
// The name of the table.
// +kubebuilder:validation:Optional
TableID *string `json:"tableId,omitempty" tf:"table_id,omitempty"`
}
type TableReferenceObservation struct {
// The dataset ID of the table.
DatasetID *string `json:"datasetId,omitempty" tf:"dataset_id,omitempty"`
// The Google Cloud Platform project ID of the project containing the table.
ProjectID *string `json:"projectId,omitempty" tf:"project_id,omitempty"`
// The name of the table.
TableID *string `json:"tableId,omitempty" tf:"table_id,omitempty"`
}
type TableReferenceParameters struct {
// The dataset ID of the table.
// +kubebuilder:validation:Required
DatasetID *string `json:"datasetId" tf:"dataset_id,omitempty"`
// The Google Cloud Platform project ID of the project containing the table.
// +kubebuilder:validation:Required
ProjectID *string `json:"projectId" tf:"project_id,omitempty"`
// The name of the table.
// +kubebuilder:validation:Required
TableID *string `json:"tableId" tf:"table_id,omitempty"`
}
type TimespanConfigObservation struct {
// When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid
// scanning files that have not been modified since the last time the JobTrigger executed. This will
// be based on the time of the execution of the last run of the JobTrigger.
EnableAutoPopulationOfTimespanConfig *bool `json:"enableAutoPopulationOfTimespanConfig,omitempty" tf:"enable_auto_population_of_timespan_config,omitempty"`
// Exclude files or rows newer than this value. If set to zero, no upper time limit is applied.
EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`
// Exclude files or rows older than this value.
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
// Information on where to inspect
// Structure is documented below.
TimestampField []TimestampFieldObservation `json:"timestampField,omitempty" tf:"timestamp_field,omitempty"`
}
type TimespanConfigParameters struct {
// When the job is started by a JobTrigger we will automatically figure out a valid startTime to avoid
// scanning files that have not been modified since the last time the JobTrigger executed. This will
// be based on the time of the execution of the last run of the JobTrigger.
// +kubebuilder:validation:Optional
EnableAutoPopulationOfTimespanConfig *bool `json:"enableAutoPopulationOfTimespanConfig,omitempty" tf:"enable_auto_population_of_timespan_config,omitempty"`
// Exclude files or rows newer than this value. If set to zero, no upper time limit is applied.
// +kubebuilder:validation:Optional
EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`
// Exclude files or rows older than this value.
// +kubebuilder:validation:Optional
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
// Information on where to inspect
// Structure is documented below.
// +kubebuilder:validation:Required
TimestampField []TimestampFieldParameters `json:"timestampField" tf:"timestamp_field,omitempty"`
}
type TimestampFieldObservation struct {
// Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery.
// For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was
// modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp
// field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column.
// For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the
// timestamp property does not exist or its value is empty or invalid.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type TimestampFieldParameters struct {
// Specification of the field containing the timestamp of scanned items. Used for data sources like Datastore and BigQuery.
// For BigQuery: Required to filter out rows based on the given start and end times. If not specified and the table was
// modified between the given start and end times, the entire table will be scanned. The valid data types of the timestamp
// field are: INTEGER, DATE, TIMESTAMP, or DATETIME BigQuery column.
// For Datastore. Valid data types of the timestamp field are: TIMESTAMP. Datastore entity will be scanned if the
// timestamp property does not exist or its value is empty or invalid.
// +kubebuilder:validation:Required
Name *string `json:"name" tf:"name,omitempty"`
}
type TriggersObservation struct {
// Schedule for triggered jobs
// Structure is documented below.
Schedule []ScheduleObservation `json:"schedule,omitempty" tf:"schedule,omitempty"`
}
type TriggersParameters struct {
// Schedule for triggered jobs
// Structure is documented below.
// +kubebuilder:validation:Optional
Schedule []ScheduleParameters `json:"schedule,omitempty" tf:"schedule,omitempty"`
}
// JobTriggerSpec defines the desired state of JobTrigger
type JobTriggerSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider JobTriggerParameters `json:"forProvider"`
}
// JobTriggerStatus defines the observed state of JobTrigger.
type JobTriggerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider JobTriggerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// JobTrigger is the Schema for the JobTriggers API. A job trigger configuration.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}
type JobTrigger struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.parent)",message="parent is a required parameter"
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.triggers)",message="triggers is a required parameter"
Spec JobTriggerSpec `json:"spec"`
Status JobTriggerStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// JobTriggerList contains a list of JobTriggers
type JobTriggerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []JobTrigger `json:"items"`
}
// Repository type metadata.
var (
JobTrigger_Kind = "JobTrigger"
JobTrigger_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: JobTrigger_Kind}.String()
JobTrigger_KindAPIVersion = JobTrigger_Kind + "." + CRDGroupVersion.String()
JobTrigger_GroupVersionKind = CRDGroupVersion.WithKind(JobTrigger_Kind)
)
func init() {
SchemeBuilder.Register(&JobTrigger{}, &JobTriggerList{})
}