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 package dlp
54
55 import (
56 "bytes"
57 "context"
58 "encoding/json"
59 "errors"
60 "fmt"
61 "io"
62 "net/http"
63 "net/url"
64 "strconv"
65 "strings"
66
67 googleapi "google.golang.org/api/googleapi"
68 internal "google.golang.org/api/internal"
69 gensupport "google.golang.org/api/internal/gensupport"
70 option "google.golang.org/api/option"
71 internaloption "google.golang.org/api/option/internaloption"
72 htransport "google.golang.org/api/transport/http"
73 )
74
75
76
77 var _ = bytes.NewBuffer
78 var _ = strconv.Itoa
79 var _ = fmt.Sprintf
80 var _ = json.NewDecoder
81 var _ = io.Copy
82 var _ = url.Parse
83 var _ = gensupport.MarshalJSON
84 var _ = googleapi.Version
85 var _ = errors.New
86 var _ = strings.Replace
87 var _ = context.Canceled
88 var _ = internaloption.WithDefaultEndpoint
89 var _ = internal.Version
90
91 const apiId = "dlp:v2"
92 const apiName = "dlp"
93 const apiVersion = "v2"
94 const basePath = "https://dlp.googleapis.com/"
95 const basePathTemplate = "https://dlp.UNIVERSE_DOMAIN/"
96 const mtlsBasePath = "https://dlp.mtls.googleapis.com/"
97
98
99 const (
100
101
102 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
103 )
104
105
106 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
107 scopesOption := internaloption.WithDefaultScopes(
108 "https://www.googleapis.com/auth/cloud-platform",
109 )
110
111 opts = append([]option.ClientOption{scopesOption}, opts...)
112 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
113 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
114 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
115 opts = append(opts, internaloption.EnableNewAuthLibrary())
116 client, endpoint, err := htransport.NewClient(ctx, opts...)
117 if err != nil {
118 return nil, err
119 }
120 s, err := New(client)
121 if err != nil {
122 return nil, err
123 }
124 if endpoint != "" {
125 s.BasePath = endpoint
126 }
127 return s, nil
128 }
129
130
131
132
133
134
135 func New(client *http.Client) (*Service, error) {
136 if client == nil {
137 return nil, errors.New("client is nil")
138 }
139 s := &Service{client: client, BasePath: basePath}
140 s.InfoTypes = NewInfoTypesService(s)
141 s.Locations = NewLocationsService(s)
142 s.Organizations = NewOrganizationsService(s)
143 s.Projects = NewProjectsService(s)
144 return s, nil
145 }
146
147 type Service struct {
148 client *http.Client
149 BasePath string
150 UserAgent string
151
152 InfoTypes *InfoTypesService
153
154 Locations *LocationsService
155
156 Organizations *OrganizationsService
157
158 Projects *ProjectsService
159 }
160
161 func (s *Service) userAgent() string {
162 if s.UserAgent == "" {
163 return googleapi.UserAgent
164 }
165 return googleapi.UserAgent + " " + s.UserAgent
166 }
167
168 func NewInfoTypesService(s *Service) *InfoTypesService {
169 rs := &InfoTypesService{s: s}
170 return rs
171 }
172
173 type InfoTypesService struct {
174 s *Service
175 }
176
177 func NewLocationsService(s *Service) *LocationsService {
178 rs := &LocationsService{s: s}
179 rs.InfoTypes = NewLocationsInfoTypesService(s)
180 return rs
181 }
182
183 type LocationsService struct {
184 s *Service
185
186 InfoTypes *LocationsInfoTypesService
187 }
188
189 func NewLocationsInfoTypesService(s *Service) *LocationsInfoTypesService {
190 rs := &LocationsInfoTypesService{s: s}
191 return rs
192 }
193
194 type LocationsInfoTypesService struct {
195 s *Service
196 }
197
198 func NewOrganizationsService(s *Service) *OrganizationsService {
199 rs := &OrganizationsService{s: s}
200 rs.DeidentifyTemplates = NewOrganizationsDeidentifyTemplatesService(s)
201 rs.InspectTemplates = NewOrganizationsInspectTemplatesService(s)
202 rs.Locations = NewOrganizationsLocationsService(s)
203 rs.StoredInfoTypes = NewOrganizationsStoredInfoTypesService(s)
204 return rs
205 }
206
207 type OrganizationsService struct {
208 s *Service
209
210 DeidentifyTemplates *OrganizationsDeidentifyTemplatesService
211
212 InspectTemplates *OrganizationsInspectTemplatesService
213
214 Locations *OrganizationsLocationsService
215
216 StoredInfoTypes *OrganizationsStoredInfoTypesService
217 }
218
219 func NewOrganizationsDeidentifyTemplatesService(s *Service) *OrganizationsDeidentifyTemplatesService {
220 rs := &OrganizationsDeidentifyTemplatesService{s: s}
221 return rs
222 }
223
224 type OrganizationsDeidentifyTemplatesService struct {
225 s *Service
226 }
227
228 func NewOrganizationsInspectTemplatesService(s *Service) *OrganizationsInspectTemplatesService {
229 rs := &OrganizationsInspectTemplatesService{s: s}
230 return rs
231 }
232
233 type OrganizationsInspectTemplatesService struct {
234 s *Service
235 }
236
237 func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService {
238 rs := &OrganizationsLocationsService{s: s}
239 rs.ColumnDataProfiles = NewOrganizationsLocationsColumnDataProfilesService(s)
240 rs.Connections = NewOrganizationsLocationsConnectionsService(s)
241 rs.DeidentifyTemplates = NewOrganizationsLocationsDeidentifyTemplatesService(s)
242 rs.DiscoveryConfigs = NewOrganizationsLocationsDiscoveryConfigsService(s)
243 rs.DlpJobs = NewOrganizationsLocationsDlpJobsService(s)
244 rs.InspectTemplates = NewOrganizationsLocationsInspectTemplatesService(s)
245 rs.JobTriggers = NewOrganizationsLocationsJobTriggersService(s)
246 rs.ProjectDataProfiles = NewOrganizationsLocationsProjectDataProfilesService(s)
247 rs.StoredInfoTypes = NewOrganizationsLocationsStoredInfoTypesService(s)
248 rs.TableDataProfiles = NewOrganizationsLocationsTableDataProfilesService(s)
249 return rs
250 }
251
252 type OrganizationsLocationsService struct {
253 s *Service
254
255 ColumnDataProfiles *OrganizationsLocationsColumnDataProfilesService
256
257 Connections *OrganizationsLocationsConnectionsService
258
259 DeidentifyTemplates *OrganizationsLocationsDeidentifyTemplatesService
260
261 DiscoveryConfigs *OrganizationsLocationsDiscoveryConfigsService
262
263 DlpJobs *OrganizationsLocationsDlpJobsService
264
265 InspectTemplates *OrganizationsLocationsInspectTemplatesService
266
267 JobTriggers *OrganizationsLocationsJobTriggersService
268
269 ProjectDataProfiles *OrganizationsLocationsProjectDataProfilesService
270
271 StoredInfoTypes *OrganizationsLocationsStoredInfoTypesService
272
273 TableDataProfiles *OrganizationsLocationsTableDataProfilesService
274 }
275
276 func NewOrganizationsLocationsColumnDataProfilesService(s *Service) *OrganizationsLocationsColumnDataProfilesService {
277 rs := &OrganizationsLocationsColumnDataProfilesService{s: s}
278 return rs
279 }
280
281 type OrganizationsLocationsColumnDataProfilesService struct {
282 s *Service
283 }
284
285 func NewOrganizationsLocationsConnectionsService(s *Service) *OrganizationsLocationsConnectionsService {
286 rs := &OrganizationsLocationsConnectionsService{s: s}
287 return rs
288 }
289
290 type OrganizationsLocationsConnectionsService struct {
291 s *Service
292 }
293
294 func NewOrganizationsLocationsDeidentifyTemplatesService(s *Service) *OrganizationsLocationsDeidentifyTemplatesService {
295 rs := &OrganizationsLocationsDeidentifyTemplatesService{s: s}
296 return rs
297 }
298
299 type OrganizationsLocationsDeidentifyTemplatesService struct {
300 s *Service
301 }
302
303 func NewOrganizationsLocationsDiscoveryConfigsService(s *Service) *OrganizationsLocationsDiscoveryConfigsService {
304 rs := &OrganizationsLocationsDiscoveryConfigsService{s: s}
305 return rs
306 }
307
308 type OrganizationsLocationsDiscoveryConfigsService struct {
309 s *Service
310 }
311
312 func NewOrganizationsLocationsDlpJobsService(s *Service) *OrganizationsLocationsDlpJobsService {
313 rs := &OrganizationsLocationsDlpJobsService{s: s}
314 return rs
315 }
316
317 type OrganizationsLocationsDlpJobsService struct {
318 s *Service
319 }
320
321 func NewOrganizationsLocationsInspectTemplatesService(s *Service) *OrganizationsLocationsInspectTemplatesService {
322 rs := &OrganizationsLocationsInspectTemplatesService{s: s}
323 return rs
324 }
325
326 type OrganizationsLocationsInspectTemplatesService struct {
327 s *Service
328 }
329
330 func NewOrganizationsLocationsJobTriggersService(s *Service) *OrganizationsLocationsJobTriggersService {
331 rs := &OrganizationsLocationsJobTriggersService{s: s}
332 return rs
333 }
334
335 type OrganizationsLocationsJobTriggersService struct {
336 s *Service
337 }
338
339 func NewOrganizationsLocationsProjectDataProfilesService(s *Service) *OrganizationsLocationsProjectDataProfilesService {
340 rs := &OrganizationsLocationsProjectDataProfilesService{s: s}
341 return rs
342 }
343
344 type OrganizationsLocationsProjectDataProfilesService struct {
345 s *Service
346 }
347
348 func NewOrganizationsLocationsStoredInfoTypesService(s *Service) *OrganizationsLocationsStoredInfoTypesService {
349 rs := &OrganizationsLocationsStoredInfoTypesService{s: s}
350 return rs
351 }
352
353 type OrganizationsLocationsStoredInfoTypesService struct {
354 s *Service
355 }
356
357 func NewOrganizationsLocationsTableDataProfilesService(s *Service) *OrganizationsLocationsTableDataProfilesService {
358 rs := &OrganizationsLocationsTableDataProfilesService{s: s}
359 return rs
360 }
361
362 type OrganizationsLocationsTableDataProfilesService struct {
363 s *Service
364 }
365
366 func NewOrganizationsStoredInfoTypesService(s *Service) *OrganizationsStoredInfoTypesService {
367 rs := &OrganizationsStoredInfoTypesService{s: s}
368 return rs
369 }
370
371 type OrganizationsStoredInfoTypesService struct {
372 s *Service
373 }
374
375 func NewProjectsService(s *Service) *ProjectsService {
376 rs := &ProjectsService{s: s}
377 rs.Content = NewProjectsContentService(s)
378 rs.DeidentifyTemplates = NewProjectsDeidentifyTemplatesService(s)
379 rs.DlpJobs = NewProjectsDlpJobsService(s)
380 rs.Image = NewProjectsImageService(s)
381 rs.InspectTemplates = NewProjectsInspectTemplatesService(s)
382 rs.JobTriggers = NewProjectsJobTriggersService(s)
383 rs.Locations = NewProjectsLocationsService(s)
384 rs.StoredInfoTypes = NewProjectsStoredInfoTypesService(s)
385 return rs
386 }
387
388 type ProjectsService struct {
389 s *Service
390
391 Content *ProjectsContentService
392
393 DeidentifyTemplates *ProjectsDeidentifyTemplatesService
394
395 DlpJobs *ProjectsDlpJobsService
396
397 Image *ProjectsImageService
398
399 InspectTemplates *ProjectsInspectTemplatesService
400
401 JobTriggers *ProjectsJobTriggersService
402
403 Locations *ProjectsLocationsService
404
405 StoredInfoTypes *ProjectsStoredInfoTypesService
406 }
407
408 func NewProjectsContentService(s *Service) *ProjectsContentService {
409 rs := &ProjectsContentService{s: s}
410 return rs
411 }
412
413 type ProjectsContentService struct {
414 s *Service
415 }
416
417 func NewProjectsDeidentifyTemplatesService(s *Service) *ProjectsDeidentifyTemplatesService {
418 rs := &ProjectsDeidentifyTemplatesService{s: s}
419 return rs
420 }
421
422 type ProjectsDeidentifyTemplatesService struct {
423 s *Service
424 }
425
426 func NewProjectsDlpJobsService(s *Service) *ProjectsDlpJobsService {
427 rs := &ProjectsDlpJobsService{s: s}
428 return rs
429 }
430
431 type ProjectsDlpJobsService struct {
432 s *Service
433 }
434
435 func NewProjectsImageService(s *Service) *ProjectsImageService {
436 rs := &ProjectsImageService{s: s}
437 return rs
438 }
439
440 type ProjectsImageService struct {
441 s *Service
442 }
443
444 func NewProjectsInspectTemplatesService(s *Service) *ProjectsInspectTemplatesService {
445 rs := &ProjectsInspectTemplatesService{s: s}
446 return rs
447 }
448
449 type ProjectsInspectTemplatesService struct {
450 s *Service
451 }
452
453 func NewProjectsJobTriggersService(s *Service) *ProjectsJobTriggersService {
454 rs := &ProjectsJobTriggersService{s: s}
455 return rs
456 }
457
458 type ProjectsJobTriggersService struct {
459 s *Service
460 }
461
462 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
463 rs := &ProjectsLocationsService{s: s}
464 rs.ColumnDataProfiles = NewProjectsLocationsColumnDataProfilesService(s)
465 rs.Connections = NewProjectsLocationsConnectionsService(s)
466 rs.Content = NewProjectsLocationsContentService(s)
467 rs.DeidentifyTemplates = NewProjectsLocationsDeidentifyTemplatesService(s)
468 rs.DiscoveryConfigs = NewProjectsLocationsDiscoveryConfigsService(s)
469 rs.DlpJobs = NewProjectsLocationsDlpJobsService(s)
470 rs.Image = NewProjectsLocationsImageService(s)
471 rs.InspectTemplates = NewProjectsLocationsInspectTemplatesService(s)
472 rs.JobTriggers = NewProjectsLocationsJobTriggersService(s)
473 rs.ProjectDataProfiles = NewProjectsLocationsProjectDataProfilesService(s)
474 rs.StoredInfoTypes = NewProjectsLocationsStoredInfoTypesService(s)
475 rs.TableDataProfiles = NewProjectsLocationsTableDataProfilesService(s)
476 return rs
477 }
478
479 type ProjectsLocationsService struct {
480 s *Service
481
482 ColumnDataProfiles *ProjectsLocationsColumnDataProfilesService
483
484 Connections *ProjectsLocationsConnectionsService
485
486 Content *ProjectsLocationsContentService
487
488 DeidentifyTemplates *ProjectsLocationsDeidentifyTemplatesService
489
490 DiscoveryConfigs *ProjectsLocationsDiscoveryConfigsService
491
492 DlpJobs *ProjectsLocationsDlpJobsService
493
494 Image *ProjectsLocationsImageService
495
496 InspectTemplates *ProjectsLocationsInspectTemplatesService
497
498 JobTriggers *ProjectsLocationsJobTriggersService
499
500 ProjectDataProfiles *ProjectsLocationsProjectDataProfilesService
501
502 StoredInfoTypes *ProjectsLocationsStoredInfoTypesService
503
504 TableDataProfiles *ProjectsLocationsTableDataProfilesService
505 }
506
507 func NewProjectsLocationsColumnDataProfilesService(s *Service) *ProjectsLocationsColumnDataProfilesService {
508 rs := &ProjectsLocationsColumnDataProfilesService{s: s}
509 return rs
510 }
511
512 type ProjectsLocationsColumnDataProfilesService struct {
513 s *Service
514 }
515
516 func NewProjectsLocationsConnectionsService(s *Service) *ProjectsLocationsConnectionsService {
517 rs := &ProjectsLocationsConnectionsService{s: s}
518 return rs
519 }
520
521 type ProjectsLocationsConnectionsService struct {
522 s *Service
523 }
524
525 func NewProjectsLocationsContentService(s *Service) *ProjectsLocationsContentService {
526 rs := &ProjectsLocationsContentService{s: s}
527 return rs
528 }
529
530 type ProjectsLocationsContentService struct {
531 s *Service
532 }
533
534 func NewProjectsLocationsDeidentifyTemplatesService(s *Service) *ProjectsLocationsDeidentifyTemplatesService {
535 rs := &ProjectsLocationsDeidentifyTemplatesService{s: s}
536 return rs
537 }
538
539 type ProjectsLocationsDeidentifyTemplatesService struct {
540 s *Service
541 }
542
543 func NewProjectsLocationsDiscoveryConfigsService(s *Service) *ProjectsLocationsDiscoveryConfigsService {
544 rs := &ProjectsLocationsDiscoveryConfigsService{s: s}
545 return rs
546 }
547
548 type ProjectsLocationsDiscoveryConfigsService struct {
549 s *Service
550 }
551
552 func NewProjectsLocationsDlpJobsService(s *Service) *ProjectsLocationsDlpJobsService {
553 rs := &ProjectsLocationsDlpJobsService{s: s}
554 return rs
555 }
556
557 type ProjectsLocationsDlpJobsService struct {
558 s *Service
559 }
560
561 func NewProjectsLocationsImageService(s *Service) *ProjectsLocationsImageService {
562 rs := &ProjectsLocationsImageService{s: s}
563 return rs
564 }
565
566 type ProjectsLocationsImageService struct {
567 s *Service
568 }
569
570 func NewProjectsLocationsInspectTemplatesService(s *Service) *ProjectsLocationsInspectTemplatesService {
571 rs := &ProjectsLocationsInspectTemplatesService{s: s}
572 return rs
573 }
574
575 type ProjectsLocationsInspectTemplatesService struct {
576 s *Service
577 }
578
579 func NewProjectsLocationsJobTriggersService(s *Service) *ProjectsLocationsJobTriggersService {
580 rs := &ProjectsLocationsJobTriggersService{s: s}
581 return rs
582 }
583
584 type ProjectsLocationsJobTriggersService struct {
585 s *Service
586 }
587
588 func NewProjectsLocationsProjectDataProfilesService(s *Service) *ProjectsLocationsProjectDataProfilesService {
589 rs := &ProjectsLocationsProjectDataProfilesService{s: s}
590 return rs
591 }
592
593 type ProjectsLocationsProjectDataProfilesService struct {
594 s *Service
595 }
596
597 func NewProjectsLocationsStoredInfoTypesService(s *Service) *ProjectsLocationsStoredInfoTypesService {
598 rs := &ProjectsLocationsStoredInfoTypesService{s: s}
599 return rs
600 }
601
602 type ProjectsLocationsStoredInfoTypesService struct {
603 s *Service
604 }
605
606 func NewProjectsLocationsTableDataProfilesService(s *Service) *ProjectsLocationsTableDataProfilesService {
607 rs := &ProjectsLocationsTableDataProfilesService{s: s}
608 return rs
609 }
610
611 type ProjectsLocationsTableDataProfilesService struct {
612 s *Service
613 }
614
615 func NewProjectsStoredInfoTypesService(s *Service) *ProjectsStoredInfoTypesService {
616 rs := &ProjectsStoredInfoTypesService{s: s}
617 return rs
618 }
619
620 type ProjectsStoredInfoTypesService struct {
621 s *Service
622 }
623
624
625
626
627 type GooglePrivacyDlpV2Action struct {
628
629 Deidentify *GooglePrivacyDlpV2Deidentify `json:"deidentify,omitempty"`
630
631
632
633 JobNotificationEmails *GooglePrivacyDlpV2JobNotificationEmails `json:"jobNotificationEmails,omitempty"`
634
635 PubSub *GooglePrivacyDlpV2PublishToPubSub `json:"pubSub,omitempty"`
636
637 PublishFindingsToCloudDataCatalog *GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog `json:"publishFindingsToCloudDataCatalog,omitempty"`
638
639
640 PublishSummaryToCscc *GooglePrivacyDlpV2PublishSummaryToCscc `json:"publishSummaryToCscc,omitempty"`
641
642
643 PublishToStackdriver *GooglePrivacyDlpV2PublishToStackdriver `json:"publishToStackdriver,omitempty"`
644
645 SaveFindings *GooglePrivacyDlpV2SaveFindings `json:"saveFindings,omitempty"`
646
647
648
649
650
651 ForceSendFields []string `json:"-"`
652
653
654
655
656 NullFields []string `json:"-"`
657 }
658
659 func (s *GooglePrivacyDlpV2Action) MarshalJSON() ([]byte, error) {
660 type NoMethod GooglePrivacyDlpV2Action
661 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
662 }
663
664
665 type GooglePrivacyDlpV2ActionDetails struct {
666
667 DeidentifyDetails *GooglePrivacyDlpV2DeidentifyDataSourceDetails `json:"deidentifyDetails,omitempty"`
668
669
670
671
672
673 ForceSendFields []string `json:"-"`
674
675
676
677
678 NullFields []string `json:"-"`
679 }
680
681 func (s *GooglePrivacyDlpV2ActionDetails) MarshalJSON() ([]byte, error) {
682 type NoMethod GooglePrivacyDlpV2ActionDetails
683 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
684 }
685
686
687
688 type GooglePrivacyDlpV2ActivateJobTriggerRequest struct {
689 }
690
691
692 type GooglePrivacyDlpV2AllInfoTypes struct {
693 }
694
695
696
697
698 type GooglePrivacyDlpV2AllOtherBigQueryTables struct {
699 }
700
701
702
703 type GooglePrivacyDlpV2AllOtherDatabaseResources struct {
704 }
705
706
707 type GooglePrivacyDlpV2AllText struct {
708 }
709
710
711
712 type GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails struct {
713
714 CategoricalStatsResult *GooglePrivacyDlpV2CategoricalStatsResult `json:"categoricalStatsResult,omitempty"`
715
716 DeltaPresenceEstimationResult *GooglePrivacyDlpV2DeltaPresenceEstimationResult `json:"deltaPresenceEstimationResult,omitempty"`
717
718 KAnonymityResult *GooglePrivacyDlpV2KAnonymityResult `json:"kAnonymityResult,omitempty"`
719
720 KMapEstimationResult *GooglePrivacyDlpV2KMapEstimationResult `json:"kMapEstimationResult,omitempty"`
721
722 LDiversityResult *GooglePrivacyDlpV2LDiversityResult `json:"lDiversityResult,omitempty"`
723
724 NumericalStatsResult *GooglePrivacyDlpV2NumericalStatsResult `json:"numericalStatsResult,omitempty"`
725
726 RequestedOptions *GooglePrivacyDlpV2RequestedRiskAnalysisOptions `json:"requestedOptions,omitempty"`
727
728 RequestedPrivacyMetric *GooglePrivacyDlpV2PrivacyMetric `json:"requestedPrivacyMetric,omitempty"`
729
730 RequestedSourceTable *GooglePrivacyDlpV2BigQueryTable `json:"requestedSourceTable,omitempty"`
731
732
733
734
735
736 ForceSendFields []string `json:"-"`
737
738
739
740
741 NullFields []string `json:"-"`
742 }
743
744 func (s *GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails) MarshalJSON() ([]byte, error) {
745 type NoMethod GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails
746 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
747 }
748
749
750
751
752
753
754
755
756 type GooglePrivacyDlpV2AuxiliaryTable struct {
757
758 QuasiIds []*GooglePrivacyDlpV2QuasiIdField `json:"quasiIds,omitempty"`
759
760
761
762 RelativeFrequency *GooglePrivacyDlpV2FieldId `json:"relativeFrequency,omitempty"`
763
764 Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
765
766
767
768
769
770 ForceSendFields []string `json:"-"`
771
772
773
774
775 NullFields []string `json:"-"`
776 }
777
778 func (s *GooglePrivacyDlpV2AuxiliaryTable) MarshalJSON() ([]byte, error) {
779 type NoMethod GooglePrivacyDlpV2AuxiliaryTable
780 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
781 }
782
783
784
785 type GooglePrivacyDlpV2BigQueryDiscoveryTarget struct {
786
787
788
789 Cadence *GooglePrivacyDlpV2DiscoveryGenerationCadence `json:"cadence,omitempty"`
790
791
792 Conditions *GooglePrivacyDlpV2DiscoveryBigQueryConditions `json:"conditions,omitempty"`
793
794 Disabled *GooglePrivacyDlpV2Disabled `json:"disabled,omitempty"`
795
796
797 Filter *GooglePrivacyDlpV2DiscoveryBigQueryFilter `json:"filter,omitempty"`
798
799
800
801
802
803 ForceSendFields []string `json:"-"`
804
805
806
807
808 NullFields []string `json:"-"`
809 }
810
811 func (s *GooglePrivacyDlpV2BigQueryDiscoveryTarget) MarshalJSON() ([]byte, error) {
812 type NoMethod GooglePrivacyDlpV2BigQueryDiscoveryTarget
813 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
814 }
815
816
817
818 type GooglePrivacyDlpV2BigQueryField struct {
819
820 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
821
822 Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
823
824
825
826
827
828 ForceSendFields []string `json:"-"`
829
830
831
832
833 NullFields []string `json:"-"`
834 }
835
836 func (s *GooglePrivacyDlpV2BigQueryField) MarshalJSON() ([]byte, error) {
837 type NoMethod GooglePrivacyDlpV2BigQueryField
838 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
839 }
840
841
842
843 type GooglePrivacyDlpV2BigQueryKey struct {
844
845
846
847
848
849 RowNumber int64 `json:"rowNumber,omitempty,string"`
850
851 TableReference *GooglePrivacyDlpV2BigQueryTable `json:"tableReference,omitempty"`
852
853
854
855
856
857 ForceSendFields []string `json:"-"`
858
859
860
861
862 NullFields []string `json:"-"`
863 }
864
865 func (s *GooglePrivacyDlpV2BigQueryKey) MarshalJSON() ([]byte, error) {
866 type NoMethod GooglePrivacyDlpV2BigQueryKey
867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
868 }
869
870
871
872 type GooglePrivacyDlpV2BigQueryOptions struct {
873
874
875
876
877
878 ExcludedFields []*GooglePrivacyDlpV2FieldId `json:"excludedFields,omitempty"`
879
880
881
882
883
884 IdentifyingFields []*GooglePrivacyDlpV2FieldId `json:"identifyingFields,omitempty"`
885
886
887
888 IncludedFields []*GooglePrivacyDlpV2FieldId `json:"includedFields,omitempty"`
889
890
891
892
893 RowsLimit int64 `json:"rowsLimit,omitempty,string"`
894
895
896
897
898
899
900
901
902 RowsLimitPercent int64 `json:"rowsLimitPercent,omitempty"`
903
904
905
906
907
908
909
910
911 SampleMethod string `json:"sampleMethod,omitempty"`
912
913 TableReference *GooglePrivacyDlpV2BigQueryTable `json:"tableReference,omitempty"`
914
915
916
917
918
919 ForceSendFields []string `json:"-"`
920
921
922
923
924 NullFields []string `json:"-"`
925 }
926
927 func (s *GooglePrivacyDlpV2BigQueryOptions) MarshalJSON() ([]byte, error) {
928 type NoMethod GooglePrivacyDlpV2BigQueryOptions
929 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
930 }
931
932
933
934
935
936
937 type GooglePrivacyDlpV2BigQueryRegex struct {
938
939 DatasetIdRegex string `json:"datasetIdRegex,omitempty"`
940
941
942 ProjectIdRegex string `json:"projectIdRegex,omitempty"`
943
944 TableIdRegex string `json:"tableIdRegex,omitempty"`
945
946
947
948
949
950 ForceSendFields []string `json:"-"`
951
952
953
954
955 NullFields []string `json:"-"`
956 }
957
958 func (s *GooglePrivacyDlpV2BigQueryRegex) MarshalJSON() ([]byte, error) {
959 type NoMethod GooglePrivacyDlpV2BigQueryRegex
960 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
961 }
962
963
964
965 type GooglePrivacyDlpV2BigQueryRegexes struct {
966
967
968 Patterns []*GooglePrivacyDlpV2BigQueryRegex `json:"patterns,omitempty"`
969
970
971
972
973
974 ForceSendFields []string `json:"-"`
975
976
977
978
979 NullFields []string `json:"-"`
980 }
981
982 func (s *GooglePrivacyDlpV2BigQueryRegexes) MarshalJSON() ([]byte, error) {
983 type NoMethod GooglePrivacyDlpV2BigQueryRegexes
984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
985 }
986
987
988
989
990
991 type GooglePrivacyDlpV2BigQueryTable struct {
992
993 DatasetId string `json:"datasetId,omitempty"`
994
995
996 ProjectId string `json:"projectId,omitempty"`
997
998 TableId string `json:"tableId,omitempty"`
999
1000
1001
1002
1003
1004 ForceSendFields []string `json:"-"`
1005
1006
1007
1008
1009 NullFields []string `json:"-"`
1010 }
1011
1012 func (s *GooglePrivacyDlpV2BigQueryTable) MarshalJSON() ([]byte, error) {
1013 type NoMethod GooglePrivacyDlpV2BigQueryTable
1014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1015 }
1016
1017
1018
1019 type GooglePrivacyDlpV2BigQueryTableCollection struct {
1020
1021
1022 IncludeRegexes *GooglePrivacyDlpV2BigQueryRegexes `json:"includeRegexes,omitempty"`
1023
1024
1025
1026
1027
1028 ForceSendFields []string `json:"-"`
1029
1030
1031
1032
1033 NullFields []string `json:"-"`
1034 }
1035
1036 func (s *GooglePrivacyDlpV2BigQueryTableCollection) MarshalJSON() ([]byte, error) {
1037 type NoMethod GooglePrivacyDlpV2BigQueryTableCollection
1038 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1039 }
1040
1041
1042
1043 type GooglePrivacyDlpV2BigQueryTableTypes struct {
1044
1045
1046
1047
1048
1049
1050
1051 Types []string `json:"types,omitempty"`
1052
1053
1054
1055
1056
1057 ForceSendFields []string `json:"-"`
1058
1059
1060
1061
1062 NullFields []string `json:"-"`
1063 }
1064
1065 func (s *GooglePrivacyDlpV2BigQueryTableTypes) MarshalJSON() ([]byte, error) {
1066 type NoMethod GooglePrivacyDlpV2BigQueryTableTypes
1067 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1068 }
1069
1070
1071
1072 type GooglePrivacyDlpV2BoundingBox struct {
1073
1074 Height int64 `json:"height,omitempty"`
1075
1076 Left int64 `json:"left,omitempty"`
1077
1078 Top int64 `json:"top,omitempty"`
1079
1080 Width int64 `json:"width,omitempty"`
1081
1082
1083
1084
1085
1086 ForceSendFields []string `json:"-"`
1087
1088
1089
1090
1091 NullFields []string `json:"-"`
1092 }
1093
1094 func (s *GooglePrivacyDlpV2BoundingBox) MarshalJSON() ([]byte, error) {
1095 type NoMethod GooglePrivacyDlpV2BoundingBox
1096 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1097 }
1098
1099
1100
1101 type GooglePrivacyDlpV2Bucket struct {
1102
1103 Max *GooglePrivacyDlpV2Value `json:"max,omitempty"`
1104
1105
1106 Min *GooglePrivacyDlpV2Value `json:"min,omitempty"`
1107
1108 ReplacementValue *GooglePrivacyDlpV2Value `json:"replacementValue,omitempty"`
1109
1110
1111
1112
1113
1114 ForceSendFields []string `json:"-"`
1115
1116
1117
1118
1119 NullFields []string `json:"-"`
1120 }
1121
1122 func (s *GooglePrivacyDlpV2Bucket) MarshalJSON() ([]byte, error) {
1123 type NoMethod GooglePrivacyDlpV2Bucket
1124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1125 }
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136 type GooglePrivacyDlpV2BucketingConfig struct {
1137
1138 Buckets []*GooglePrivacyDlpV2Bucket `json:"buckets,omitempty"`
1139
1140
1141
1142
1143
1144 ForceSendFields []string `json:"-"`
1145
1146
1147
1148
1149 NullFields []string `json:"-"`
1150 }
1151
1152 func (s *GooglePrivacyDlpV2BucketingConfig) MarshalJSON() ([]byte, error) {
1153 type NoMethod GooglePrivacyDlpV2BucketingConfig
1154 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1155 }
1156
1157
1158 type GooglePrivacyDlpV2ByteContentItem struct {
1159
1160 Data string `json:"data,omitempty"`
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179 Type string `json:"type,omitempty"`
1180
1181
1182
1183
1184
1185 ForceSendFields []string `json:"-"`
1186
1187
1188
1189
1190 NullFields []string `json:"-"`
1191 }
1192
1193 func (s *GooglePrivacyDlpV2ByteContentItem) MarshalJSON() ([]byte, error) {
1194 type NoMethod GooglePrivacyDlpV2ByteContentItem
1195 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1196 }
1197
1198
1199
1200 type GooglePrivacyDlpV2CancelDlpJobRequest struct {
1201 }
1202
1203
1204
1205
1206 type GooglePrivacyDlpV2CategoricalStatsConfig struct {
1207
1208
1209
1210 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
1211
1212
1213
1214
1215
1216 ForceSendFields []string `json:"-"`
1217
1218
1219
1220
1221 NullFields []string `json:"-"`
1222 }
1223
1224 func (s *GooglePrivacyDlpV2CategoricalStatsConfig) MarshalJSON() ([]byte, error) {
1225 type NoMethod GooglePrivacyDlpV2CategoricalStatsConfig
1226 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1227 }
1228
1229
1230
1231 type GooglePrivacyDlpV2CategoricalStatsHistogramBucket struct {
1232
1233 BucketSize int64 `json:"bucketSize,omitempty,string"`
1234
1235 BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
1236
1237
1238 BucketValues []*GooglePrivacyDlpV2ValueFrequency `json:"bucketValues,omitempty"`
1239
1240
1241 ValueFrequencyLowerBound int64 `json:"valueFrequencyLowerBound,omitempty,string"`
1242
1243
1244 ValueFrequencyUpperBound int64 `json:"valueFrequencyUpperBound,omitempty,string"`
1245
1246
1247
1248
1249
1250 ForceSendFields []string `json:"-"`
1251
1252
1253
1254
1255 NullFields []string `json:"-"`
1256 }
1257
1258 func (s *GooglePrivacyDlpV2CategoricalStatsHistogramBucket) MarshalJSON() ([]byte, error) {
1259 type NoMethod GooglePrivacyDlpV2CategoricalStatsHistogramBucket
1260 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1261 }
1262
1263
1264
1265 type GooglePrivacyDlpV2CategoricalStatsResult struct {
1266
1267
1268 ValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2CategoricalStatsHistogramBucket `json:"valueFrequencyHistogramBuckets,omitempty"`
1269
1270
1271
1272
1273
1274
1275 ForceSendFields []string `json:"-"`
1276
1277
1278
1279
1280 NullFields []string `json:"-"`
1281 }
1282
1283 func (s *GooglePrivacyDlpV2CategoricalStatsResult) MarshalJSON() ([]byte, error) {
1284 type NoMethod GooglePrivacyDlpV2CategoricalStatsResult
1285 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1286 }
1287
1288
1289
1290
1291
1292
1293
1294 type GooglePrivacyDlpV2CharacterMaskConfig struct {
1295
1296
1297
1298
1299 CharactersToIgnore []*GooglePrivacyDlpV2CharsToIgnore `json:"charactersToIgnore,omitempty"`
1300
1301
1302
1303
1304
1305 MaskingCharacter string `json:"maskingCharacter,omitempty"`
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316 NumberToMask int64 `json:"numberToMask,omitempty"`
1317
1318
1319
1320
1321
1322
1323 ReverseOrder bool `json:"reverseOrder,omitempty"`
1324
1325
1326
1327
1328
1329 ForceSendFields []string `json:"-"`
1330
1331
1332
1333
1334 NullFields []string `json:"-"`
1335 }
1336
1337 func (s *GooglePrivacyDlpV2CharacterMaskConfig) MarshalJSON() ([]byte, error) {
1338 type NoMethod GooglePrivacyDlpV2CharacterMaskConfig
1339 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1340 }
1341
1342
1343
1344 type GooglePrivacyDlpV2CharsToIgnore struct {
1345
1346 CharactersToSkip string `json:"charactersToSkip,omitempty"`
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357 CommonCharactersToIgnore string `json:"commonCharactersToIgnore,omitempty"`
1358
1359
1360
1361
1362
1363 ForceSendFields []string `json:"-"`
1364
1365
1366
1367
1368 NullFields []string `json:"-"`
1369 }
1370
1371 func (s *GooglePrivacyDlpV2CharsToIgnore) MarshalJSON() ([]byte, error) {
1372 type NoMethod GooglePrivacyDlpV2CharsToIgnore
1373 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1374 }
1375
1376
1377
1378 type GooglePrivacyDlpV2CloudSqlDiscoveryTarget struct {
1379
1380
1381 Conditions *GooglePrivacyDlpV2DiscoveryCloudSqlConditions `json:"conditions,omitempty"`
1382
1383 Disabled *GooglePrivacyDlpV2Disabled `json:"disabled,omitempty"`
1384
1385
1386 Filter *GooglePrivacyDlpV2DiscoveryCloudSqlFilter `json:"filter,omitempty"`
1387
1388
1389
1390 GenerationCadence *GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence `json:"generationCadence,omitempty"`
1391
1392
1393
1394
1395
1396 ForceSendFields []string `json:"-"`
1397
1398
1399
1400
1401 NullFields []string `json:"-"`
1402 }
1403
1404 func (s *GooglePrivacyDlpV2CloudSqlDiscoveryTarget) MarshalJSON() ([]byte, error) {
1405 type NoMethod GooglePrivacyDlpV2CloudSqlDiscoveryTarget
1406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1407 }
1408
1409
1410
1411
1412
1413
1414 type GooglePrivacyDlpV2CloudSqlIamCredential struct {
1415 }
1416
1417
1418 type GooglePrivacyDlpV2CloudSqlProperties struct {
1419
1420 CloudSqlIam *GooglePrivacyDlpV2CloudSqlIamCredential `json:"cloudSqlIam,omitempty"`
1421
1422
1423
1424
1425
1426
1427
1428 ConnectionName string `json:"connectionName,omitempty"`
1429
1430
1431
1432
1433
1434
1435
1436
1437 DatabaseEngine string `json:"databaseEngine,omitempty"`
1438
1439
1440 MaxConnections int64 `json:"maxConnections,omitempty"`
1441
1442 UsernamePassword *GooglePrivacyDlpV2SecretManagerCredential `json:"usernamePassword,omitempty"`
1443
1444
1445
1446
1447
1448 ForceSendFields []string `json:"-"`
1449
1450
1451
1452
1453 NullFields []string `json:"-"`
1454 }
1455
1456 func (s *GooglePrivacyDlpV2CloudSqlProperties) MarshalJSON() ([]byte, error) {
1457 type NoMethod GooglePrivacyDlpV2CloudSqlProperties
1458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1459 }
1460
1461
1462
1463 type GooglePrivacyDlpV2CloudStorageFileSet struct {
1464
1465
1466 Url string `json:"url,omitempty"`
1467
1468
1469
1470
1471
1472 ForceSendFields []string `json:"-"`
1473
1474
1475
1476
1477 NullFields []string `json:"-"`
1478 }
1479
1480 func (s *GooglePrivacyDlpV2CloudStorageFileSet) MarshalJSON() ([]byte, error) {
1481 type NoMethod GooglePrivacyDlpV2CloudStorageFileSet
1482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1483 }
1484
1485
1486
1487 type GooglePrivacyDlpV2CloudStorageOptions struct {
1488
1489
1490
1491
1492
1493
1494
1495 BytesLimitPerFile int64 `json:"bytesLimitPerFile,omitempty,string"`
1496
1497
1498
1499
1500
1501
1502
1503
1504 BytesLimitPerFilePercent int64 `json:"bytesLimitPerFilePercent,omitempty"`
1505
1506 FileSet *GooglePrivacyDlpV2FileSet `json:"fileSet,omitempty"`
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549 FileTypes []string `json:"fileTypes,omitempty"`
1550
1551
1552
1553 FilesLimitPercent int64 `json:"filesLimitPercent,omitempty"`
1554
1555
1556
1557
1558
1559
1560
1561 SampleMethod string `json:"sampleMethod,omitempty"`
1562
1563
1564
1565
1566
1567 ForceSendFields []string `json:"-"`
1568
1569
1570
1571
1572 NullFields []string `json:"-"`
1573 }
1574
1575 func (s *GooglePrivacyDlpV2CloudStorageOptions) MarshalJSON() ([]byte, error) {
1576 type NoMethod GooglePrivacyDlpV2CloudStorageOptions
1577 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1578 }
1579
1580
1581
1582 type GooglePrivacyDlpV2CloudStoragePath struct {
1583
1584
1585 Path string `json:"path,omitempty"`
1586
1587
1588
1589
1590
1591 ForceSendFields []string `json:"-"`
1592
1593
1594
1595
1596 NullFields []string `json:"-"`
1597 }
1598
1599 func (s *GooglePrivacyDlpV2CloudStoragePath) MarshalJSON() ([]byte, error) {
1600 type NoMethod GooglePrivacyDlpV2CloudStoragePath
1601 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1602 }
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625 type GooglePrivacyDlpV2CloudStorageRegexFileSet struct {
1626
1627 BucketName string `json:"bucketName,omitempty"`
1628
1629
1630
1631
1632
1633 ExcludeRegex []string `json:"excludeRegex,omitempty"`
1634
1635
1636
1637
1638
1639
1640
1641 IncludeRegex []string `json:"includeRegex,omitempty"`
1642
1643
1644
1645
1646
1647 ForceSendFields []string `json:"-"`
1648
1649
1650
1651
1652 NullFields []string `json:"-"`
1653 }
1654
1655 func (s *GooglePrivacyDlpV2CloudStorageRegexFileSet) MarshalJSON() ([]byte, error) {
1656 type NoMethod GooglePrivacyDlpV2CloudStorageRegexFileSet
1657 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1658 }
1659
1660
1661 type GooglePrivacyDlpV2Color struct {
1662
1663 Blue float64 `json:"blue,omitempty"`
1664
1665 Green float64 `json:"green,omitempty"`
1666
1667 Red float64 `json:"red,omitempty"`
1668
1669
1670
1671
1672
1673 ForceSendFields []string `json:"-"`
1674
1675
1676
1677
1678 NullFields []string `json:"-"`
1679 }
1680
1681 func (s *GooglePrivacyDlpV2Color) MarshalJSON() ([]byte, error) {
1682 type NoMethod GooglePrivacyDlpV2Color
1683 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1684 }
1685
1686 func (s *GooglePrivacyDlpV2Color) UnmarshalJSON(data []byte) error {
1687 type NoMethod GooglePrivacyDlpV2Color
1688 var s1 struct {
1689 Blue gensupport.JSONFloat64 `json:"blue"`
1690 Green gensupport.JSONFloat64 `json:"green"`
1691 Red gensupport.JSONFloat64 `json:"red"`
1692 *NoMethod
1693 }
1694 s1.NoMethod = (*NoMethod)(s)
1695 if err := json.Unmarshal(data, &s1); err != nil {
1696 return err
1697 }
1698 s.Blue = float64(s1.Blue)
1699 s.Green = float64(s1.Green)
1700 s.Red = float64(s1.Red)
1701 return nil
1702 }
1703
1704
1705
1706 type GooglePrivacyDlpV2ColumnDataProfile struct {
1707
1708 Column string `json:"column,omitempty"`
1709
1710
1711
1712 ColumnInfoType *GooglePrivacyDlpV2InfoTypeSummary `json:"columnInfoType,omitempty"`
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739 ColumnType string `json:"columnType,omitempty"`
1740
1741 DataRiskLevel *GooglePrivacyDlpV2DataRiskLevel `json:"dataRiskLevel,omitempty"`
1742
1743 DatasetId string `json:"datasetId,omitempty"`
1744
1745
1746
1747 DatasetLocation string `json:"datasetLocation,omitempty"`
1748
1749
1750 DatasetProjectId string `json:"datasetProjectId,omitempty"`
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760 EstimatedNullPercentage string `json:"estimatedNullPercentage,omitempty"`
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771 EstimatedUniquenessScore string `json:"estimatedUniquenessScore,omitempty"`
1772
1773
1774
1775 FreeTextScore float64 `json:"freeTextScore,omitempty"`
1776
1777 Name string `json:"name,omitempty"`
1778
1779 OtherMatches []*GooglePrivacyDlpV2OtherInfoTypeSummary `json:"otherMatches,omitempty"`
1780
1781
1782
1783
1784
1785 PolicyState string `json:"policyState,omitempty"`
1786
1787 ProfileLastGenerated string `json:"profileLastGenerated,omitempty"`
1788
1789
1790 ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"`
1791
1792 SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802 State string `json:"state,omitempty"`
1803
1804 TableDataProfile string `json:"tableDataProfile,omitempty"`
1805
1806 TableFullResource string `json:"tableFullResource,omitempty"`
1807
1808 TableId string `json:"tableId,omitempty"`
1809
1810
1811 googleapi.ServerResponse `json:"-"`
1812
1813
1814
1815
1816
1817 ForceSendFields []string `json:"-"`
1818
1819
1820
1821
1822 NullFields []string `json:"-"`
1823 }
1824
1825 func (s *GooglePrivacyDlpV2ColumnDataProfile) MarshalJSON() ([]byte, error) {
1826 type NoMethod GooglePrivacyDlpV2ColumnDataProfile
1827 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1828 }
1829
1830 func (s *GooglePrivacyDlpV2ColumnDataProfile) UnmarshalJSON(data []byte) error {
1831 type NoMethod GooglePrivacyDlpV2ColumnDataProfile
1832 var s1 struct {
1833 FreeTextScore gensupport.JSONFloat64 `json:"freeTextScore"`
1834 *NoMethod
1835 }
1836 s1.NoMethod = (*NoMethod)(s)
1837 if err := json.Unmarshal(data, &s1); err != nil {
1838 return err
1839 }
1840 s.FreeTextScore = float64(s1.FreeTextScore)
1841 return nil
1842 }
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856 type GooglePrivacyDlpV2Condition struct {
1857
1858
1859 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873 Operator string `json:"operator,omitempty"`
1874
1875 Value *GooglePrivacyDlpV2Value `json:"value,omitempty"`
1876
1877
1878
1879
1880
1881 ForceSendFields []string `json:"-"`
1882
1883
1884
1885
1886 NullFields []string `json:"-"`
1887 }
1888
1889 func (s *GooglePrivacyDlpV2Condition) MarshalJSON() ([]byte, error) {
1890 type NoMethod GooglePrivacyDlpV2Condition
1891 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1892 }
1893
1894
1895 type GooglePrivacyDlpV2Conditions struct {
1896
1897 Conditions []*GooglePrivacyDlpV2Condition `json:"conditions,omitempty"`
1898
1899
1900
1901
1902
1903 ForceSendFields []string `json:"-"`
1904
1905
1906
1907
1908 NullFields []string `json:"-"`
1909 }
1910
1911 func (s *GooglePrivacyDlpV2Conditions) MarshalJSON() ([]byte, error) {
1912 type NoMethod GooglePrivacyDlpV2Conditions
1913 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1914 }
1915
1916
1917
1918 type GooglePrivacyDlpV2Connection struct {
1919
1920 CloudSql *GooglePrivacyDlpV2CloudSqlProperties `json:"cloudSql,omitempty"`
1921
1922
1923 Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
1924
1925
1926 Name string `json:"name,omitempty"`
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939 State string `json:"state,omitempty"`
1940
1941
1942 googleapi.ServerResponse `json:"-"`
1943
1944
1945
1946
1947
1948 ForceSendFields []string `json:"-"`
1949
1950
1951
1952
1953 NullFields []string `json:"-"`
1954 }
1955
1956 func (s *GooglePrivacyDlpV2Connection) MarshalJSON() ([]byte, error) {
1957 type NoMethod GooglePrivacyDlpV2Connection
1958 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1959 }
1960
1961
1962
1963 type GooglePrivacyDlpV2Container struct {
1964
1965
1966
1967 FullPath string `json:"fullPath,omitempty"`
1968
1969
1970 ProjectId string `json:"projectId,omitempty"`
1971
1972
1973
1974
1975 RelativePath string `json:"relativePath,omitempty"`
1976
1977
1978
1979 RootPath string `json:"rootPath,omitempty"`
1980
1981 Type string `json:"type,omitempty"`
1982
1983
1984
1985
1986 UpdateTime string `json:"updateTime,omitempty"`
1987
1988
1989 Version string `json:"version,omitempty"`
1990
1991
1992
1993
1994
1995 ForceSendFields []string `json:"-"`
1996
1997
1998
1999
2000 NullFields []string `json:"-"`
2001 }
2002
2003 func (s *GooglePrivacyDlpV2Container) MarshalJSON() ([]byte, error) {
2004 type NoMethod GooglePrivacyDlpV2Container
2005 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2006 }
2007
2008
2009 type GooglePrivacyDlpV2ContentItem struct {
2010
2011 ByteItem *GooglePrivacyDlpV2ByteContentItem `json:"byteItem,omitempty"`
2012
2013
2014
2015 Table *GooglePrivacyDlpV2Table `json:"table,omitempty"`
2016
2017 Value string `json:"value,omitempty"`
2018
2019
2020
2021
2022
2023 ForceSendFields []string `json:"-"`
2024
2025
2026
2027
2028 NullFields []string `json:"-"`
2029 }
2030
2031 func (s *GooglePrivacyDlpV2ContentItem) MarshalJSON() ([]byte, error) {
2032 type NoMethod GooglePrivacyDlpV2ContentItem
2033 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2034 }
2035
2036
2037
2038 type GooglePrivacyDlpV2ContentLocation struct {
2039
2040
2041
2042
2043
2044
2045
2046 ContainerName string `json:"containerName,omitempty"`
2047
2048
2049
2050
2051 ContainerTimestamp string `json:"containerTimestamp,omitempty"`
2052
2053
2054 ContainerVersion string `json:"containerVersion,omitempty"`
2055
2056 DocumentLocation *GooglePrivacyDlpV2DocumentLocation `json:"documentLocation,omitempty"`
2057
2058 ImageLocation *GooglePrivacyDlpV2ImageLocation `json:"imageLocation,omitempty"`
2059
2060 MetadataLocation *GooglePrivacyDlpV2MetadataLocation `json:"metadataLocation,omitempty"`
2061
2062 RecordLocation *GooglePrivacyDlpV2RecordLocation `json:"recordLocation,omitempty"`
2063
2064
2065
2066
2067
2068 ForceSendFields []string `json:"-"`
2069
2070
2071
2072
2073 NullFields []string `json:"-"`
2074 }
2075
2076 func (s *GooglePrivacyDlpV2ContentLocation) MarshalJSON() ([]byte, error) {
2077 type NoMethod GooglePrivacyDlpV2ContentLocation
2078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2079 }
2080
2081
2082
2083 type GooglePrivacyDlpV2CreateConnectionRequest struct {
2084
2085 Connection *GooglePrivacyDlpV2Connection `json:"connection,omitempty"`
2086
2087
2088
2089
2090
2091 ForceSendFields []string `json:"-"`
2092
2093
2094
2095
2096 NullFields []string `json:"-"`
2097 }
2098
2099 func (s *GooglePrivacyDlpV2CreateConnectionRequest) MarshalJSON() ([]byte, error) {
2100 type NoMethod GooglePrivacyDlpV2CreateConnectionRequest
2101 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2102 }
2103
2104
2105
2106 type GooglePrivacyDlpV2CreateDeidentifyTemplateRequest struct {
2107
2108 DeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"deidentifyTemplate,omitempty"`
2109
2110 LocationId string `json:"locationId,omitempty"`
2111
2112
2113
2114
2115 TemplateId string `json:"templateId,omitempty"`
2116
2117
2118
2119
2120
2121 ForceSendFields []string `json:"-"`
2122
2123
2124
2125
2126 NullFields []string `json:"-"`
2127 }
2128
2129 func (s *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) MarshalJSON() ([]byte, error) {
2130 type NoMethod GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
2131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2132 }
2133
2134
2135
2136 type GooglePrivacyDlpV2CreateDiscoveryConfigRequest struct {
2137
2138
2139
2140
2141 ConfigId string `json:"configId,omitempty"`
2142
2143 DiscoveryConfig *GooglePrivacyDlpV2DiscoveryConfig `json:"discoveryConfig,omitempty"`
2144
2145
2146
2147
2148
2149 ForceSendFields []string `json:"-"`
2150
2151
2152
2153
2154 NullFields []string `json:"-"`
2155 }
2156
2157 func (s *GooglePrivacyDlpV2CreateDiscoveryConfigRequest) MarshalJSON() ([]byte, error) {
2158 type NoMethod GooglePrivacyDlpV2CreateDiscoveryConfigRequest
2159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2160 }
2161
2162
2163
2164
2165 type GooglePrivacyDlpV2CreateDlpJobRequest struct {
2166
2167 InspectJob *GooglePrivacyDlpV2InspectJobConfig `json:"inspectJob,omitempty"`
2168
2169
2170
2171
2172 JobId string `json:"jobId,omitempty"`
2173
2174 LocationId string `json:"locationId,omitempty"`
2175
2176
2177 RiskJob *GooglePrivacyDlpV2RiskAnalysisJobConfig `json:"riskJob,omitempty"`
2178
2179
2180
2181
2182
2183 ForceSendFields []string `json:"-"`
2184
2185
2186
2187
2188 NullFields []string `json:"-"`
2189 }
2190
2191 func (s *GooglePrivacyDlpV2CreateDlpJobRequest) MarshalJSON() ([]byte, error) {
2192 type NoMethod GooglePrivacyDlpV2CreateDlpJobRequest
2193 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2194 }
2195
2196
2197
2198 type GooglePrivacyDlpV2CreateInspectTemplateRequest struct {
2199
2200 InspectTemplate *GooglePrivacyDlpV2InspectTemplate `json:"inspectTemplate,omitempty"`
2201
2202 LocationId string `json:"locationId,omitempty"`
2203
2204
2205
2206
2207 TemplateId string `json:"templateId,omitempty"`
2208
2209
2210
2211
2212
2213 ForceSendFields []string `json:"-"`
2214
2215
2216
2217
2218 NullFields []string `json:"-"`
2219 }
2220
2221 func (s *GooglePrivacyDlpV2CreateInspectTemplateRequest) MarshalJSON() ([]byte, error) {
2222 type NoMethod GooglePrivacyDlpV2CreateInspectTemplateRequest
2223 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2224 }
2225
2226
2227
2228 type GooglePrivacyDlpV2CreateJobTriggerRequest struct {
2229
2230 JobTrigger *GooglePrivacyDlpV2JobTrigger `json:"jobTrigger,omitempty"`
2231
2232 LocationId string `json:"locationId,omitempty"`
2233
2234
2235
2236
2237 TriggerId string `json:"triggerId,omitempty"`
2238
2239
2240
2241
2242
2243 ForceSendFields []string `json:"-"`
2244
2245
2246
2247
2248 NullFields []string `json:"-"`
2249 }
2250
2251 func (s *GooglePrivacyDlpV2CreateJobTriggerRequest) MarshalJSON() ([]byte, error) {
2252 type NoMethod GooglePrivacyDlpV2CreateJobTriggerRequest
2253 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2254 }
2255
2256
2257
2258 type GooglePrivacyDlpV2CreateStoredInfoTypeRequest struct {
2259
2260 Config *GooglePrivacyDlpV2StoredInfoTypeConfig `json:"config,omitempty"`
2261
2262 LocationId string `json:"locationId,omitempty"`
2263
2264
2265
2266
2267 StoredInfoTypeId string `json:"storedInfoTypeId,omitempty"`
2268
2269
2270
2271
2272
2273 ForceSendFields []string `json:"-"`
2274
2275
2276
2277
2278 NullFields []string `json:"-"`
2279 }
2280
2281 func (s *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) MarshalJSON() ([]byte, error) {
2282 type NoMethod GooglePrivacyDlpV2CreateStoredInfoTypeRequest
2283 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2284 }
2285
2286
2287
2288
2289
2290 type GooglePrivacyDlpV2CryptoDeterministicConfig struct {
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303 Context *GooglePrivacyDlpV2FieldId `json:"context,omitempty"`
2304
2305
2306
2307 CryptoKey *GooglePrivacyDlpV2CryptoKey `json:"cryptoKey,omitempty"`
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330 SurrogateInfoType *GooglePrivacyDlpV2InfoType `json:"surrogateInfoType,omitempty"`
2331
2332
2333
2334
2335
2336 ForceSendFields []string `json:"-"`
2337
2338
2339
2340
2341 NullFields []string `json:"-"`
2342 }
2343
2344 func (s *GooglePrivacyDlpV2CryptoDeterministicConfig) MarshalJSON() ([]byte, error) {
2345 type NoMethod GooglePrivacyDlpV2CryptoDeterministicConfig
2346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2347 }
2348
2349
2350
2351
2352
2353
2354
2355
2356 type GooglePrivacyDlpV2CryptoHashConfig struct {
2357
2358 CryptoKey *GooglePrivacyDlpV2CryptoKey `json:"cryptoKey,omitempty"`
2359
2360
2361
2362
2363
2364 ForceSendFields []string `json:"-"`
2365
2366
2367
2368
2369 NullFields []string `json:"-"`
2370 }
2371
2372 func (s *GooglePrivacyDlpV2CryptoHashConfig) MarshalJSON() ([]byte, error) {
2373 type NoMethod GooglePrivacyDlpV2CryptoHashConfig
2374 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2375 }
2376
2377
2378
2379
2380
2381
2382 type GooglePrivacyDlpV2CryptoKey struct {
2383
2384 KmsWrapped *GooglePrivacyDlpV2KmsWrappedCryptoKey `json:"kmsWrapped,omitempty"`
2385
2386 Transient *GooglePrivacyDlpV2TransientCryptoKey `json:"transient,omitempty"`
2387
2388 Unwrapped *GooglePrivacyDlpV2UnwrappedCryptoKey `json:"unwrapped,omitempty"`
2389
2390
2391
2392
2393
2394 ForceSendFields []string `json:"-"`
2395
2396
2397
2398
2399 NullFields []string `json:"-"`
2400 }
2401
2402 func (s *GooglePrivacyDlpV2CryptoKey) MarshalJSON() ([]byte, error) {
2403 type NoMethod GooglePrivacyDlpV2CryptoKey
2404 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2405 }
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419 type GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig struct {
2420
2421
2422
2423
2424
2425
2426
2427
2428 CommonAlphabet string `json:"commonAlphabet,omitempty"`
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441 Context *GooglePrivacyDlpV2FieldId `json:"context,omitempty"`
2442
2443 CryptoKey *GooglePrivacyDlpV2CryptoKey `json:"cryptoKey,omitempty"`
2444
2445
2446
2447
2448
2449
2450
2451 CustomAlphabet string `json:"customAlphabet,omitempty"`
2452
2453 Radix int64 `json:"radix,omitempty"`
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474 SurrogateInfoType *GooglePrivacyDlpV2InfoType `json:"surrogateInfoType,omitempty"`
2475
2476
2477
2478
2479
2480 ForceSendFields []string `json:"-"`
2481
2482
2483
2484
2485 NullFields []string `json:"-"`
2486 }
2487
2488 func (s *GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig) MarshalJSON() ([]byte, error) {
2489 type NoMethod GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig
2490 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2491 }
2492
2493
2494
2495
2496 type GooglePrivacyDlpV2CustomInfoType struct {
2497
2498
2499
2500 DetectionRules []*GooglePrivacyDlpV2DetectionRule `json:"detectionRules,omitempty"`
2501
2502 Dictionary *GooglePrivacyDlpV2Dictionary `json:"dictionary,omitempty"`
2503
2504
2505
2506
2507
2508
2509
2510
2511 ExclusionType string `json:"exclusionType,omitempty"`
2512
2513
2514
2515
2516
2517
2518 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531 Likelihood string `json:"likelihood,omitempty"`
2532
2533 Regex *GooglePrivacyDlpV2Regex `json:"regex,omitempty"`
2534
2535
2536
2537
2538
2539 SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
2540
2541
2542 StoredType *GooglePrivacyDlpV2StoredType `json:"storedType,omitempty"`
2543
2544
2545 SurrogateType *GooglePrivacyDlpV2SurrogateType `json:"surrogateType,omitempty"`
2546
2547
2548
2549
2550
2551 ForceSendFields []string `json:"-"`
2552
2553
2554
2555
2556 NullFields []string `json:"-"`
2557 }
2558
2559 func (s *GooglePrivacyDlpV2CustomInfoType) MarshalJSON() ([]byte, error) {
2560 type NoMethod GooglePrivacyDlpV2CustomInfoType
2561 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2562 }
2563
2564
2565
2566 type GooglePrivacyDlpV2DataProfileAction struct {
2567
2568 ExportData *GooglePrivacyDlpV2Export `json:"exportData,omitempty"`
2569
2570 PubSubNotification *GooglePrivacyDlpV2PubSubNotification `json:"pubSubNotification,omitempty"`
2571
2572
2573
2574
2575
2576 ForceSendFields []string `json:"-"`
2577
2578
2579
2580
2581 NullFields []string `json:"-"`
2582 }
2583
2584 func (s *GooglePrivacyDlpV2DataProfileAction) MarshalJSON() ([]byte, error) {
2585 type NoMethod GooglePrivacyDlpV2DataProfileAction
2586 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2587 }
2588
2589
2590
2591 type GooglePrivacyDlpV2DataProfileBigQueryRowSchema struct {
2592
2593 ColumnProfile *GooglePrivacyDlpV2ColumnDataProfile `json:"columnProfile,omitempty"`
2594
2595 TableProfile *GooglePrivacyDlpV2TableDataProfile `json:"tableProfile,omitempty"`
2596
2597
2598
2599
2600
2601 ForceSendFields []string `json:"-"`
2602
2603
2604
2605
2606 NullFields []string `json:"-"`
2607 }
2608
2609 func (s *GooglePrivacyDlpV2DataProfileBigQueryRowSchema) MarshalJSON() ([]byte, error) {
2610 type NoMethod GooglePrivacyDlpV2DataProfileBigQueryRowSchema
2611 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2612 }
2613
2614
2615
2616 type GooglePrivacyDlpV2DataProfileConfigSnapshot struct {
2617
2618
2619
2620
2621
2622 DataProfileJob *GooglePrivacyDlpV2DataProfileJobConfig `json:"dataProfileJob,omitempty"`
2623
2624 DiscoveryConfig *GooglePrivacyDlpV2DiscoveryConfig `json:"discoveryConfig,omitempty"`
2625
2626
2627
2628 InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
2629
2630 InspectTemplateModifiedTime string `json:"inspectTemplateModifiedTime,omitempty"`
2631
2632
2633 InspectTemplateName string `json:"inspectTemplateName,omitempty"`
2634
2635
2636
2637
2638
2639 ForceSendFields []string `json:"-"`
2640
2641
2642
2643
2644 NullFields []string `json:"-"`
2645 }
2646
2647 func (s *GooglePrivacyDlpV2DataProfileConfigSnapshot) MarshalJSON() ([]byte, error) {
2648 type NoMethod GooglePrivacyDlpV2DataProfileConfigSnapshot
2649 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2650 }
2651
2652
2653
2654
2655
2656
2657 type GooglePrivacyDlpV2DataProfileJobConfig struct {
2658
2659 DataProfileActions []*GooglePrivacyDlpV2DataProfileAction `json:"dataProfileActions,omitempty"`
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670 InspectTemplates []string `json:"inspectTemplates,omitempty"`
2671
2672 Location *GooglePrivacyDlpV2DataProfileLocation `json:"location,omitempty"`
2673
2674
2675
2676 ProjectId string `json:"projectId,omitempty"`
2677
2678
2679
2680
2681
2682 ForceSendFields []string `json:"-"`
2683
2684
2685
2686
2687 NullFields []string `json:"-"`
2688 }
2689
2690 func (s *GooglePrivacyDlpV2DataProfileJobConfig) MarshalJSON() ([]byte, error) {
2691 type NoMethod GooglePrivacyDlpV2DataProfileJobConfig
2692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2693 }
2694
2695
2696 type GooglePrivacyDlpV2DataProfileLocation struct {
2697
2698 FolderId int64 `json:"folderId,omitempty,string"`
2699
2700 OrganizationId int64 `json:"organizationId,omitempty,string"`
2701
2702
2703
2704
2705
2706 ForceSendFields []string `json:"-"`
2707
2708
2709
2710
2711 NullFields []string `json:"-"`
2712 }
2713
2714 func (s *GooglePrivacyDlpV2DataProfileLocation) MarshalJSON() ([]byte, error) {
2715 type NoMethod GooglePrivacyDlpV2DataProfileLocation
2716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2717 }
2718
2719
2720
2721 type GooglePrivacyDlpV2DataProfilePubSubCondition struct {
2722
2723 Expressions *GooglePrivacyDlpV2PubSubExpressions `json:"expressions,omitempty"`
2724
2725
2726
2727
2728
2729 ForceSendFields []string `json:"-"`
2730
2731
2732
2733
2734 NullFields []string `json:"-"`
2735 }
2736
2737 func (s *GooglePrivacyDlpV2DataProfilePubSubCondition) MarshalJSON() ([]byte, error) {
2738 type NoMethod GooglePrivacyDlpV2DataProfilePubSubCondition
2739 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2740 }
2741
2742
2743
2744
2745
2746 type GooglePrivacyDlpV2DataProfilePubSubMessage struct {
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757 Event string `json:"event,omitempty"`
2758
2759
2760
2761 Profile *GooglePrivacyDlpV2TableDataProfile `json:"profile,omitempty"`
2762
2763
2764
2765
2766
2767 ForceSendFields []string `json:"-"`
2768
2769
2770
2771
2772 NullFields []string `json:"-"`
2773 }
2774
2775 func (s *GooglePrivacyDlpV2DataProfilePubSubMessage) MarshalJSON() ([]byte, error) {
2776 type NoMethod GooglePrivacyDlpV2DataProfilePubSubMessage
2777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2778 }
2779
2780
2781
2782 type GooglePrivacyDlpV2DataRiskLevel struct {
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797 Score string `json:"score,omitempty"`
2798
2799
2800
2801
2802
2803 ForceSendFields []string `json:"-"`
2804
2805
2806
2807
2808 NullFields []string `json:"-"`
2809 }
2810
2811 func (s *GooglePrivacyDlpV2DataRiskLevel) MarshalJSON() ([]byte, error) {
2812 type NoMethod GooglePrivacyDlpV2DataRiskLevel
2813 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2814 }
2815
2816
2817
2818 type GooglePrivacyDlpV2DataSourceType struct {
2819
2820
2821 DataSource string `json:"dataSource,omitempty"`
2822
2823
2824
2825
2826
2827 ForceSendFields []string `json:"-"`
2828
2829
2830
2831
2832 NullFields []string `json:"-"`
2833 }
2834
2835 func (s *GooglePrivacyDlpV2DataSourceType) MarshalJSON() ([]byte, error) {
2836 type NoMethod GooglePrivacyDlpV2DataSourceType
2837 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2838 }
2839
2840
2841
2842
2843 type GooglePrivacyDlpV2DatabaseResourceCollection struct {
2844
2845
2846 IncludeRegexes *GooglePrivacyDlpV2DatabaseResourceRegexes `json:"includeRegexes,omitempty"`
2847
2848
2849
2850
2851
2852 ForceSendFields []string `json:"-"`
2853
2854
2855
2856
2857 NullFields []string `json:"-"`
2858 }
2859
2860 func (s *GooglePrivacyDlpV2DatabaseResourceCollection) MarshalJSON() ([]byte, error) {
2861 type NoMethod GooglePrivacyDlpV2DatabaseResourceCollection
2862 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2863 }
2864
2865
2866
2867 type GooglePrivacyDlpV2DatabaseResourceReference struct {
2868
2869
2870 Instance string `json:"instance,omitempty"`
2871
2872
2873 ProjectId string `json:"projectId,omitempty"`
2874
2875
2876
2877
2878
2879 ForceSendFields []string `json:"-"`
2880
2881
2882
2883
2884 NullFields []string `json:"-"`
2885 }
2886
2887 func (s *GooglePrivacyDlpV2DatabaseResourceReference) MarshalJSON() ([]byte, error) {
2888 type NoMethod GooglePrivacyDlpV2DatabaseResourceReference
2889 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2890 }
2891
2892
2893
2894
2895
2896 type GooglePrivacyDlpV2DatabaseResourceRegex struct {
2897
2898
2899 DatabaseRegex string `json:"databaseRegex,omitempty"`
2900
2901
2902
2903
2904 DatabaseResourceNameRegex string `json:"databaseResourceNameRegex,omitempty"`
2905
2906
2907 InstanceRegex string `json:"instanceRegex,omitempty"`
2908
2909
2910 ProjectIdRegex string `json:"projectIdRegex,omitempty"`
2911
2912
2913
2914
2915
2916 ForceSendFields []string `json:"-"`
2917
2918
2919
2920
2921 NullFields []string `json:"-"`
2922 }
2923
2924 func (s *GooglePrivacyDlpV2DatabaseResourceRegex) MarshalJSON() ([]byte, error) {
2925 type NoMethod GooglePrivacyDlpV2DatabaseResourceRegex
2926 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2927 }
2928
2929
2930
2931 type GooglePrivacyDlpV2DatabaseResourceRegexes struct {
2932
2933
2934
2935 Patterns []*GooglePrivacyDlpV2DatabaseResourceRegex `json:"patterns,omitempty"`
2936
2937
2938
2939
2940
2941 ForceSendFields []string `json:"-"`
2942
2943
2944
2945
2946 NullFields []string `json:"-"`
2947 }
2948
2949 func (s *GooglePrivacyDlpV2DatabaseResourceRegexes) MarshalJSON() ([]byte, error) {
2950 type NoMethod GooglePrivacyDlpV2DatabaseResourceRegexes
2951 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2952 }
2953
2954
2955 type GooglePrivacyDlpV2DatastoreKey struct {
2956
2957 EntityKey *GooglePrivacyDlpV2Key `json:"entityKey,omitempty"`
2958
2959
2960
2961
2962
2963 ForceSendFields []string `json:"-"`
2964
2965
2966
2967
2968 NullFields []string `json:"-"`
2969 }
2970
2971 func (s *GooglePrivacyDlpV2DatastoreKey) MarshalJSON() ([]byte, error) {
2972 type NoMethod GooglePrivacyDlpV2DatastoreKey
2973 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2974 }
2975
2976
2977
2978 type GooglePrivacyDlpV2DatastoreOptions struct {
2979
2980 Kind *GooglePrivacyDlpV2KindExpression `json:"kind,omitempty"`
2981
2982
2983 PartitionId *GooglePrivacyDlpV2PartitionId `json:"partitionId,omitempty"`
2984
2985
2986
2987
2988
2989 ForceSendFields []string `json:"-"`
2990
2991
2992
2993
2994 NullFields []string `json:"-"`
2995 }
2996
2997 func (s *GooglePrivacyDlpV2DatastoreOptions) MarshalJSON() ([]byte, error) {
2998 type NoMethod GooglePrivacyDlpV2DatastoreOptions
2999 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3000 }
3001
3002
3003
3004
3005
3006 type GooglePrivacyDlpV2DateShiftConfig struct {
3007
3008
3009
3010 Context *GooglePrivacyDlpV2FieldId `json:"context,omitempty"`
3011
3012
3013
3014 CryptoKey *GooglePrivacyDlpV2CryptoKey `json:"cryptoKey,omitempty"`
3015
3016
3017 LowerBoundDays int64 `json:"lowerBoundDays,omitempty"`
3018
3019
3020
3021
3022
3023 UpperBoundDays int64 `json:"upperBoundDays,omitempty"`
3024
3025
3026
3027
3028
3029 ForceSendFields []string `json:"-"`
3030
3031
3032
3033
3034 NullFields []string `json:"-"`
3035 }
3036
3037 func (s *GooglePrivacyDlpV2DateShiftConfig) MarshalJSON() ([]byte, error) {
3038 type NoMethod GooglePrivacyDlpV2DateShiftConfig
3039 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3040 }
3041
3042
3043
3044 type GooglePrivacyDlpV2DateTime struct {
3045
3046
3047 Date *GoogleTypeDate `json:"date,omitempty"`
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059 DayOfWeek string `json:"dayOfWeek,omitempty"`
3060
3061 Time *GoogleTypeTimeOfDay `json:"time,omitempty"`
3062
3063 TimeZone *GooglePrivacyDlpV2TimeZone `json:"timeZone,omitempty"`
3064
3065
3066
3067
3068
3069 ForceSendFields []string `json:"-"`
3070
3071
3072
3073
3074 NullFields []string `json:"-"`
3075 }
3076
3077 func (s *GooglePrivacyDlpV2DateTime) MarshalJSON() ([]byte, error) {
3078 type NoMethod GooglePrivacyDlpV2DateTime
3079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3080 }
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092 type GooglePrivacyDlpV2Deidentify struct {
3093
3094
3095
3096
3097
3098 CloudStorageOutput string `json:"cloudStorageOutput,omitempty"`
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142 FileTypesToTransform []string `json:"fileTypesToTransform,omitempty"`
3143
3144
3145 TransformationConfig *GooglePrivacyDlpV2TransformationConfig `json:"transformationConfig,omitempty"`
3146
3147
3148
3149
3150
3151
3152 TransformationDetailsStorageConfig *GooglePrivacyDlpV2TransformationDetailsStorageConfig `json:"transformationDetailsStorageConfig,omitempty"`
3153
3154
3155
3156
3157
3158 ForceSendFields []string `json:"-"`
3159
3160
3161
3162
3163 NullFields []string `json:"-"`
3164 }
3165
3166 func (s *GooglePrivacyDlpV2Deidentify) MarshalJSON() ([]byte, error) {
3167 type NoMethod GooglePrivacyDlpV2Deidentify
3168 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3169 }
3170
3171
3172
3173 type GooglePrivacyDlpV2DeidentifyConfig struct {
3174
3175 ImageTransformations *GooglePrivacyDlpV2ImageTransformations `json:"imageTransformations,omitempty"`
3176
3177
3178 InfoTypeTransformations *GooglePrivacyDlpV2InfoTypeTransformations `json:"infoTypeTransformations,omitempty"`
3179
3180
3181
3182 RecordTransformations *GooglePrivacyDlpV2RecordTransformations `json:"recordTransformations,omitempty"`
3183
3184
3185
3186 TransformationErrorHandling *GooglePrivacyDlpV2TransformationErrorHandling `json:"transformationErrorHandling,omitempty"`
3187
3188
3189
3190
3191
3192 ForceSendFields []string `json:"-"`
3193
3194
3195
3196
3197 NullFields []string `json:"-"`
3198 }
3199
3200 func (s *GooglePrivacyDlpV2DeidentifyConfig) MarshalJSON() ([]byte, error) {
3201 type NoMethod GooglePrivacyDlpV2DeidentifyConfig
3202 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3203 }
3204
3205
3206
3207 type GooglePrivacyDlpV2DeidentifyContentRequest struct {
3208
3209
3210
3211 DeidentifyConfig *GooglePrivacyDlpV2DeidentifyConfig `json:"deidentifyConfig,omitempty"`
3212
3213
3214
3215
3216
3217 DeidentifyTemplateName string `json:"deidentifyTemplateName,omitempty"`
3218
3219
3220 InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
3221
3222
3223
3224
3225
3226 InspectTemplateName string `json:"inspectTemplateName,omitempty"`
3227
3228
3229 Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
3230
3231 LocationId string `json:"locationId,omitempty"`
3232
3233
3234
3235
3236
3237 ForceSendFields []string `json:"-"`
3238
3239
3240
3241
3242 NullFields []string `json:"-"`
3243 }
3244
3245 func (s *GooglePrivacyDlpV2DeidentifyContentRequest) MarshalJSON() ([]byte, error) {
3246 type NoMethod GooglePrivacyDlpV2DeidentifyContentRequest
3247 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3248 }
3249
3250
3251
3252 type GooglePrivacyDlpV2DeidentifyContentResponse struct {
3253
3254 Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
3255
3256 Overview *GooglePrivacyDlpV2TransformationOverview `json:"overview,omitempty"`
3257
3258
3259 googleapi.ServerResponse `json:"-"`
3260
3261
3262
3263
3264
3265 ForceSendFields []string `json:"-"`
3266
3267
3268
3269
3270 NullFields []string `json:"-"`
3271 }
3272
3273 func (s *GooglePrivacyDlpV2DeidentifyContentResponse) MarshalJSON() ([]byte, error) {
3274 type NoMethod GooglePrivacyDlpV2DeidentifyContentResponse
3275 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3276 }
3277
3278
3279
3280 type GooglePrivacyDlpV2DeidentifyDataSourceDetails struct {
3281
3282 DeidentifyStats *GooglePrivacyDlpV2DeidentifyDataSourceStats `json:"deidentifyStats,omitempty"`
3283
3284 RequestedOptions *GooglePrivacyDlpV2RequestedDeidentifyOptions `json:"requestedOptions,omitempty"`
3285
3286
3287
3288
3289
3290 ForceSendFields []string `json:"-"`
3291
3292
3293
3294
3295 NullFields []string `json:"-"`
3296 }
3297
3298 func (s *GooglePrivacyDlpV2DeidentifyDataSourceDetails) MarshalJSON() ([]byte, error) {
3299 type NoMethod GooglePrivacyDlpV2DeidentifyDataSourceDetails
3300 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3301 }
3302
3303
3304
3305 type GooglePrivacyDlpV2DeidentifyDataSourceStats struct {
3306
3307 TransformationCount int64 `json:"transformationCount,omitempty,string"`
3308
3309
3310 TransformationErrorCount int64 `json:"transformationErrorCount,omitempty,string"`
3311
3312 TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
3313
3314
3315
3316
3317
3318 ForceSendFields []string `json:"-"`
3319
3320
3321
3322
3323 NullFields []string `json:"-"`
3324 }
3325
3326 func (s *GooglePrivacyDlpV2DeidentifyDataSourceStats) MarshalJSON() ([]byte, error) {
3327 type NoMethod GooglePrivacyDlpV2DeidentifyDataSourceStats
3328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3329 }
3330
3331
3332
3333
3334
3335 type GooglePrivacyDlpV2DeidentifyTemplate struct {
3336
3337 CreateTime string `json:"createTime,omitempty"`
3338
3339 DeidentifyConfig *GooglePrivacyDlpV2DeidentifyConfig `json:"deidentifyConfig,omitempty"`
3340
3341 Description string `json:"description,omitempty"`
3342
3343 DisplayName string `json:"displayName,omitempty"`
3344
3345
3346
3347 Name string `json:"name,omitempty"`
3348
3349 UpdateTime string `json:"updateTime,omitempty"`
3350
3351
3352 googleapi.ServerResponse `json:"-"`
3353
3354
3355
3356
3357
3358 ForceSendFields []string `json:"-"`
3359
3360
3361
3362
3363 NullFields []string `json:"-"`
3364 }
3365
3366 func (s *GooglePrivacyDlpV2DeidentifyTemplate) MarshalJSON() ([]byte, error) {
3367 type NoMethod GooglePrivacyDlpV2DeidentifyTemplate
3368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3369 }
3370
3371
3372
3373
3374
3375
3376 type GooglePrivacyDlpV2DeltaPresenceEstimationConfig struct {
3377
3378
3379
3380 AuxiliaryTables []*GooglePrivacyDlpV2StatisticalTable `json:"auxiliaryTables,omitempty"`
3381
3382
3383 QuasiIds []*GooglePrivacyDlpV2QuasiId `json:"quasiIds,omitempty"`
3384
3385
3386
3387 RegionCode string `json:"regionCode,omitempty"`
3388
3389
3390
3391
3392
3393 ForceSendFields []string `json:"-"`
3394
3395
3396
3397
3398 NullFields []string `json:"-"`
3399 }
3400
3401 func (s *GooglePrivacyDlpV2DeltaPresenceEstimationConfig) MarshalJSON() ([]byte, error) {
3402 type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationConfig
3403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3404 }
3405
3406
3407
3408
3409
3410
3411
3412 type GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket struct {
3413
3414 BucketSize int64 `json:"bucketSize,omitempty,string"`
3415
3416
3417 BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
3418
3419
3420 BucketValues []*GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues `json:"bucketValues,omitempty"`
3421
3422 MaxProbability float64 `json:"maxProbability,omitempty"`
3423
3424 MinProbability float64 `json:"minProbability,omitempty"`
3425
3426
3427
3428
3429
3430 ForceSendFields []string `json:"-"`
3431
3432
3433
3434
3435 NullFields []string `json:"-"`
3436 }
3437
3438 func (s *GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket) MarshalJSON() ([]byte, error) {
3439 type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket
3440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3441 }
3442
3443 func (s *GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket) UnmarshalJSON(data []byte) error {
3444 type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket
3445 var s1 struct {
3446 MaxProbability gensupport.JSONFloat64 `json:"maxProbability"`
3447 MinProbability gensupport.JSONFloat64 `json:"minProbability"`
3448 *NoMethod
3449 }
3450 s1.NoMethod = (*NoMethod)(s)
3451 if err := json.Unmarshal(data, &s1); err != nil {
3452 return err
3453 }
3454 s.MaxProbability = float64(s1.MaxProbability)
3455 s.MinProbability = float64(s1.MinProbability)
3456 return nil
3457 }
3458
3459
3460
3461 type GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues struct {
3462
3463
3464
3465
3466
3467
3468
3469
3470 EstimatedProbability float64 `json:"estimatedProbability,omitempty"`
3471
3472 QuasiIdsValues []*GooglePrivacyDlpV2Value `json:"quasiIdsValues,omitempty"`
3473
3474
3475
3476
3477
3478 ForceSendFields []string `json:"-"`
3479
3480
3481
3482
3483 NullFields []string `json:"-"`
3484 }
3485
3486 func (s *GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues) MarshalJSON() ([]byte, error) {
3487 type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues
3488 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3489 }
3490
3491 func (s *GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues) UnmarshalJSON(data []byte) error {
3492 type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues
3493 var s1 struct {
3494 EstimatedProbability gensupport.JSONFloat64 `json:"estimatedProbability"`
3495 *NoMethod
3496 }
3497 s1.NoMethod = (*NoMethod)(s)
3498 if err := json.Unmarshal(data, &s1); err != nil {
3499 return err
3500 }
3501 s.EstimatedProbability = float64(s1.EstimatedProbability)
3502 return nil
3503 }
3504
3505
3506
3507 type GooglePrivacyDlpV2DeltaPresenceEstimationResult struct {
3508
3509
3510
3511
3512
3513
3514
3515
3516 DeltaPresenceEstimationHistogram []*GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket `json:"deltaPresenceEstimationHistogram,omitempty"`
3517
3518
3519
3520
3521
3522
3523 ForceSendFields []string `json:"-"`
3524
3525
3526
3527
3528
3529 NullFields []string `json:"-"`
3530 }
3531
3532 func (s *GooglePrivacyDlpV2DeltaPresenceEstimationResult) MarshalJSON() ([]byte, error) {
3533 type NoMethod GooglePrivacyDlpV2DeltaPresenceEstimationResult
3534 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3535 }
3536
3537
3538
3539
3540
3541 type GooglePrivacyDlpV2DetectionRule struct {
3542
3543 HotwordRule *GooglePrivacyDlpV2HotwordRule `json:"hotwordRule,omitempty"`
3544
3545
3546
3547
3548
3549 ForceSendFields []string `json:"-"`
3550
3551
3552
3553
3554 NullFields []string `json:"-"`
3555 }
3556
3557 func (s *GooglePrivacyDlpV2DetectionRule) MarshalJSON() ([]byte, error) {
3558 type NoMethod GooglePrivacyDlpV2DetectionRule
3559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3560 }
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582 type GooglePrivacyDlpV2Dictionary struct {
3583
3584
3585 CloudStoragePath *GooglePrivacyDlpV2CloudStoragePath `json:"cloudStoragePath,omitempty"`
3586
3587 WordList *GooglePrivacyDlpV2WordList `json:"wordList,omitempty"`
3588
3589
3590
3591
3592
3593 ForceSendFields []string `json:"-"`
3594
3595
3596
3597
3598 NullFields []string `json:"-"`
3599 }
3600
3601 func (s *GooglePrivacyDlpV2Dictionary) MarshalJSON() ([]byte, error) {
3602 type NoMethod GooglePrivacyDlpV2Dictionary
3603 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3604 }
3605
3606
3607 type GooglePrivacyDlpV2Disabled struct {
3608 }
3609
3610
3611
3612
3613
3614
3615 type GooglePrivacyDlpV2DiscoveryBigQueryConditions struct {
3616
3617
3618 CreatedAfter string `json:"createdAfter,omitempty"`
3619
3620
3621 OrConditions *GooglePrivacyDlpV2OrConditions `json:"orConditions,omitempty"`
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635 TypeCollection string `json:"typeCollection,omitempty"`
3636
3637 Types *GooglePrivacyDlpV2BigQueryTableTypes `json:"types,omitempty"`
3638
3639
3640
3641
3642
3643 ForceSendFields []string `json:"-"`
3644
3645
3646
3647
3648 NullFields []string `json:"-"`
3649 }
3650
3651 func (s *GooglePrivacyDlpV2DiscoveryBigQueryConditions) MarshalJSON() ([]byte, error) {
3652 type NoMethod GooglePrivacyDlpV2DiscoveryBigQueryConditions
3653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3654 }
3655
3656
3657
3658
3659
3660 type GooglePrivacyDlpV2DiscoveryBigQueryFilter struct {
3661
3662
3663
3664
3665 OtherTables *GooglePrivacyDlpV2AllOtherBigQueryTables `json:"otherTables,omitempty"`
3666
3667
3668
3669
3670 Tables *GooglePrivacyDlpV2BigQueryTableCollection `json:"tables,omitempty"`
3671
3672
3673
3674
3675
3676 ForceSendFields []string `json:"-"`
3677
3678
3679
3680
3681 NullFields []string `json:"-"`
3682 }
3683
3684 func (s *GooglePrivacyDlpV2DiscoveryBigQueryFilter) MarshalJSON() ([]byte, error) {
3685 type NoMethod GooglePrivacyDlpV2DiscoveryBigQueryFilter
3686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3687 }
3688
3689
3690
3691 type GooglePrivacyDlpV2DiscoveryCloudSqlConditions struct {
3692
3693
3694
3695
3696
3697
3698
3699
3700 DatabaseEngines []string `json:"databaseEngines,omitempty"`
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710 Types []string `json:"types,omitempty"`
3711
3712
3713
3714
3715
3716 ForceSendFields []string `json:"-"`
3717
3718
3719
3720
3721 NullFields []string `json:"-"`
3722 }
3723
3724 func (s *GooglePrivacyDlpV2DiscoveryCloudSqlConditions) MarshalJSON() ([]byte, error) {
3725 type NoMethod GooglePrivacyDlpV2DiscoveryCloudSqlConditions
3726 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3727 }
3728
3729
3730
3731
3732
3733 type GooglePrivacyDlpV2DiscoveryCloudSqlFilter struct {
3734
3735
3736 Collection *GooglePrivacyDlpV2DatabaseResourceCollection `json:"collection,omitempty"`
3737
3738
3739
3740 DatabaseResourceReference *GooglePrivacyDlpV2DatabaseResourceReference `json:"databaseResourceReference,omitempty"`
3741
3742
3743
3744
3745 Others *GooglePrivacyDlpV2AllOtherDatabaseResources `json:"others,omitempty"`
3746
3747
3748
3749
3750
3751 ForceSendFields []string `json:"-"`
3752
3753
3754
3755
3756 NullFields []string `json:"-"`
3757 }
3758
3759 func (s *GooglePrivacyDlpV2DiscoveryCloudSqlFilter) MarshalJSON() ([]byte, error) {
3760 type NoMethod GooglePrivacyDlpV2DiscoveryCloudSqlFilter
3761 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3762 }
3763
3764
3765
3766
3767 type GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence struct {
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781 RefreshFrequency string `json:"refreshFrequency,omitempty"`
3782
3783 SchemaModifiedCadence *GooglePrivacyDlpV2SchemaModifiedCadence `json:"schemaModifiedCadence,omitempty"`
3784
3785
3786
3787
3788
3789 ForceSendFields []string `json:"-"`
3790
3791
3792
3793
3794 NullFields []string `json:"-"`
3795 }
3796
3797 func (s *GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence) MarshalJSON() ([]byte, error) {
3798 type NoMethod GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence
3799 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3800 }
3801
3802
3803
3804
3805
3806
3807 type GooglePrivacyDlpV2DiscoveryConfig struct {
3808
3809 Actions []*GooglePrivacyDlpV2DataProfileAction `json:"actions,omitempty"`
3810
3811 CreateTime string `json:"createTime,omitempty"`
3812
3813 DisplayName string `json:"displayName,omitempty"`
3814
3815
3816
3817
3818 Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829 InspectTemplates []string `json:"inspectTemplates,omitempty"`
3830
3831
3832 LastRunTime string `json:"lastRunTime,omitempty"`
3833
3834
3835
3836 Name string `json:"name,omitempty"`
3837
3838 OrgConfig *GooglePrivacyDlpV2OrgConfig `json:"orgConfig,omitempty"`
3839
3840
3841
3842
3843
3844
3845 Status string `json:"status,omitempty"`
3846
3847
3848 Targets []*GooglePrivacyDlpV2DiscoveryTarget `json:"targets,omitempty"`
3849
3850 UpdateTime string `json:"updateTime,omitempty"`
3851
3852
3853 googleapi.ServerResponse `json:"-"`
3854
3855
3856
3857
3858
3859 ForceSendFields []string `json:"-"`
3860
3861
3862
3863
3864 NullFields []string `json:"-"`
3865 }
3866
3867 func (s *GooglePrivacyDlpV2DiscoveryConfig) MarshalJSON() ([]byte, error) {
3868 type NoMethod GooglePrivacyDlpV2DiscoveryConfig
3869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3870 }
3871
3872
3873
3874
3875 type GooglePrivacyDlpV2DiscoveryGenerationCadence struct {
3876
3877
3878 SchemaModifiedCadence *GooglePrivacyDlpV2DiscoverySchemaModifiedCadence `json:"schemaModifiedCadence,omitempty"`
3879
3880
3881 TableModifiedCadence *GooglePrivacyDlpV2DiscoveryTableModifiedCadence `json:"tableModifiedCadence,omitempty"`
3882
3883
3884
3885
3886
3887 ForceSendFields []string `json:"-"`
3888
3889
3890
3891
3892 NullFields []string `json:"-"`
3893 }
3894
3895 func (s *GooglePrivacyDlpV2DiscoveryGenerationCadence) MarshalJSON() ([]byte, error) {
3896 type NoMethod GooglePrivacyDlpV2DiscoveryGenerationCadence
3897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3898 }
3899
3900
3901
3902 type GooglePrivacyDlpV2DiscoverySchemaModifiedCadence struct {
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914 Frequency string `json:"frequency,omitempty"`
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925 Types []string `json:"types,omitempty"`
3926
3927
3928
3929
3930
3931 ForceSendFields []string `json:"-"`
3932
3933
3934
3935
3936 NullFields []string `json:"-"`
3937 }
3938
3939 func (s *GooglePrivacyDlpV2DiscoverySchemaModifiedCadence) MarshalJSON() ([]byte, error) {
3940 type NoMethod GooglePrivacyDlpV2DiscoverySchemaModifiedCadence
3941 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3942 }
3943
3944
3945
3946
3947 type GooglePrivacyDlpV2DiscoveryStartingLocation struct {
3948
3949 FolderId int64 `json:"folderId,omitempty,string"`
3950
3951 OrganizationId int64 `json:"organizationId,omitempty,string"`
3952
3953
3954
3955
3956
3957 ForceSendFields []string `json:"-"`
3958
3959
3960
3961
3962 NullFields []string `json:"-"`
3963 }
3964
3965 func (s *GooglePrivacyDlpV2DiscoveryStartingLocation) MarshalJSON() ([]byte, error) {
3966 type NoMethod GooglePrivacyDlpV2DiscoveryStartingLocation
3967 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3968 }
3969
3970
3971
3972 type GooglePrivacyDlpV2DiscoveryTableModifiedCadence struct {
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984 Frequency string `json:"frequency,omitempty"`
3985
3986
3987
3988
3989
3990
3991
3992
3993 Types []string `json:"types,omitempty"`
3994
3995
3996
3997
3998
3999 ForceSendFields []string `json:"-"`
4000
4001
4002
4003
4004 NullFields []string `json:"-"`
4005 }
4006
4007 func (s *GooglePrivacyDlpV2DiscoveryTableModifiedCadence) MarshalJSON() ([]byte, error) {
4008 type NoMethod GooglePrivacyDlpV2DiscoveryTableModifiedCadence
4009 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4010 }
4011
4012
4013
4014 type GooglePrivacyDlpV2DiscoveryTarget struct {
4015
4016
4017 BigQueryTarget *GooglePrivacyDlpV2BigQueryDiscoveryTarget `json:"bigQueryTarget,omitempty"`
4018
4019
4020 CloudSqlTarget *GooglePrivacyDlpV2CloudSqlDiscoveryTarget `json:"cloudSqlTarget,omitempty"`
4021
4022
4023
4024
4025
4026 ForceSendFields []string `json:"-"`
4027
4028
4029
4030
4031 NullFields []string `json:"-"`
4032 }
4033
4034 func (s *GooglePrivacyDlpV2DiscoveryTarget) MarshalJSON() ([]byte, error) {
4035 type NoMethod GooglePrivacyDlpV2DiscoveryTarget
4036 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4037 }
4038
4039
4040 type GooglePrivacyDlpV2DlpJob struct {
4041
4042 ActionDetails []*GooglePrivacyDlpV2ActionDetails `json:"actionDetails,omitempty"`
4043
4044 CreateTime string `json:"createTime,omitempty"`
4045
4046 EndTime string `json:"endTime,omitempty"`
4047
4048 Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
4049
4050 InspectDetails *GooglePrivacyDlpV2InspectDataSourceDetails `json:"inspectDetails,omitempty"`
4051
4052
4053 JobTriggerName string `json:"jobTriggerName,omitempty"`
4054
4055 LastModified string `json:"lastModified,omitempty"`
4056
4057 Name string `json:"name,omitempty"`
4058
4059 RiskDetails *GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails `json:"riskDetails,omitempty"`
4060
4061 StartTime string `json:"startTime,omitempty"`
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076 State string `json:"state,omitempty"`
4077
4078
4079
4080
4081
4082
4083 Type string `json:"type,omitempty"`
4084
4085
4086 googleapi.ServerResponse `json:"-"`
4087
4088
4089
4090
4091
4092 ForceSendFields []string `json:"-"`
4093
4094
4095
4096
4097 NullFields []string `json:"-"`
4098 }
4099
4100 func (s *GooglePrivacyDlpV2DlpJob) MarshalJSON() ([]byte, error) {
4101 type NoMethod GooglePrivacyDlpV2DlpJob
4102 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4103 }
4104
4105
4106 type GooglePrivacyDlpV2DocumentLocation struct {
4107
4108
4109 FileOffset int64 `json:"fileOffset,omitempty,string"`
4110
4111
4112
4113
4114
4115 ForceSendFields []string `json:"-"`
4116
4117
4118
4119
4120 NullFields []string `json:"-"`
4121 }
4122
4123 func (s *GooglePrivacyDlpV2DocumentLocation) MarshalJSON() ([]byte, error) {
4124 type NoMethod GooglePrivacyDlpV2DocumentLocation
4125 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4126 }
4127
4128
4129
4130
4131
4132
4133
4134 type GooglePrivacyDlpV2EntityId struct {
4135
4136 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
4137
4138
4139
4140
4141
4142 ForceSendFields []string `json:"-"`
4143
4144
4145
4146
4147 NullFields []string `json:"-"`
4148 }
4149
4150 func (s *GooglePrivacyDlpV2EntityId) MarshalJSON() ([]byte, error) {
4151 type NoMethod GooglePrivacyDlpV2EntityId
4152 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4153 }
4154
4155
4156
4157
4158 type GooglePrivacyDlpV2Error struct {
4159
4160 Details *GoogleRpcStatus `json:"details,omitempty"`
4161
4162
4163 Timestamps []string `json:"timestamps,omitempty"`
4164
4165
4166
4167
4168
4169 ForceSendFields []string `json:"-"`
4170
4171
4172
4173
4174 NullFields []string `json:"-"`
4175 }
4176
4177 func (s *GooglePrivacyDlpV2Error) MarshalJSON() ([]byte, error) {
4178 type NoMethod GooglePrivacyDlpV2Error
4179 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4180 }
4181
4182
4183
4184
4185
4186 type GooglePrivacyDlpV2ExcludeByHotword struct {
4187
4188
4189 HotwordRegex *GooglePrivacyDlpV2Regex `json:"hotwordRegex,omitempty"`
4190
4191
4192
4193
4194 Proximity *GooglePrivacyDlpV2Proximity `json:"proximity,omitempty"`
4195
4196
4197
4198
4199
4200 ForceSendFields []string `json:"-"`
4201
4202
4203
4204
4205 NullFields []string `json:"-"`
4206 }
4207
4208 func (s *GooglePrivacyDlpV2ExcludeByHotword) MarshalJSON() ([]byte, error) {
4209 type NoMethod GooglePrivacyDlpV2ExcludeByHotword
4210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4211 }
4212
4213
4214 type GooglePrivacyDlpV2ExcludeInfoTypes struct {
4215
4216
4217
4218
4219
4220
4221
4222 InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
4223
4224
4225
4226
4227
4228 ForceSendFields []string `json:"-"`
4229
4230
4231
4232
4233 NullFields []string `json:"-"`
4234 }
4235
4236 func (s *GooglePrivacyDlpV2ExcludeInfoTypes) MarshalJSON() ([]byte, error) {
4237 type NoMethod GooglePrivacyDlpV2ExcludeInfoTypes
4238 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4239 }
4240
4241
4242
4243
4244 type GooglePrivacyDlpV2ExclusionRule struct {
4245
4246 Dictionary *GooglePrivacyDlpV2Dictionary `json:"dictionary,omitempty"`
4247
4248
4249 ExcludeByHotword *GooglePrivacyDlpV2ExcludeByHotword `json:"excludeByHotword,omitempty"`
4250
4251
4252 ExcludeInfoTypes *GooglePrivacyDlpV2ExcludeInfoTypes `json:"excludeInfoTypes,omitempty"`
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268 MatchingType string `json:"matchingType,omitempty"`
4269
4270 Regex *GooglePrivacyDlpV2Regex `json:"regex,omitempty"`
4271
4272
4273
4274
4275
4276 ForceSendFields []string `json:"-"`
4277
4278
4279
4280
4281 NullFields []string `json:"-"`
4282 }
4283
4284 func (s *GooglePrivacyDlpV2ExclusionRule) MarshalJSON() ([]byte, error) {
4285 type NoMethod GooglePrivacyDlpV2ExclusionRule
4286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4287 }
4288
4289
4290
4291 type GooglePrivacyDlpV2Export struct {
4292
4293
4294
4295
4296
4297
4298
4299
4300 ProfileTable *GooglePrivacyDlpV2BigQueryTable `json:"profileTable,omitempty"`
4301
4302
4303
4304
4305
4306 ForceSendFields []string `json:"-"`
4307
4308
4309
4310
4311 NullFields []string `json:"-"`
4312 }
4313
4314 func (s *GooglePrivacyDlpV2Export) MarshalJSON() ([]byte, error) {
4315 type NoMethod GooglePrivacyDlpV2Export
4316 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4317 }
4318
4319
4320
4321 type GooglePrivacyDlpV2Expressions struct {
4322
4323 Conditions *GooglePrivacyDlpV2Conditions `json:"conditions,omitempty"`
4324
4325
4326
4327
4328
4329
4330 LogicalOperator string `json:"logicalOperator,omitempty"`
4331
4332
4333
4334
4335
4336 ForceSendFields []string `json:"-"`
4337
4338
4339
4340
4341 NullFields []string `json:"-"`
4342 }
4343
4344 func (s *GooglePrivacyDlpV2Expressions) MarshalJSON() ([]byte, error) {
4345 type NoMethod GooglePrivacyDlpV2Expressions
4346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4347 }
4348
4349
4350
4351 type GooglePrivacyDlpV2FieldId struct {
4352
4353 Name string `json:"name,omitempty"`
4354
4355
4356
4357
4358
4359 ForceSendFields []string `json:"-"`
4360
4361
4362
4363
4364 NullFields []string `json:"-"`
4365 }
4366
4367 func (s *GooglePrivacyDlpV2FieldId) MarshalJSON() ([]byte, error) {
4368 type NoMethod GooglePrivacyDlpV2FieldId
4369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4370 }
4371
4372
4373
4374 type GooglePrivacyDlpV2FieldTransformation struct {
4375
4376
4377
4378
4379
4380
4381 Condition *GooglePrivacyDlpV2RecordCondition `json:"condition,omitempty"`
4382
4383
4384
4385
4386 Fields []*GooglePrivacyDlpV2FieldId `json:"fields,omitempty"`
4387
4388
4389 InfoTypeTransformations *GooglePrivacyDlpV2InfoTypeTransformations `json:"infoTypeTransformations,omitempty"`
4390
4391 PrimitiveTransformation *GooglePrivacyDlpV2PrimitiveTransformation `json:"primitiveTransformation,omitempty"`
4392
4393
4394
4395
4396
4397 ForceSendFields []string `json:"-"`
4398
4399
4400
4401
4402 NullFields []string `json:"-"`
4403 }
4404
4405 func (s *GooglePrivacyDlpV2FieldTransformation) MarshalJSON() ([]byte, error) {
4406 type NoMethod GooglePrivacyDlpV2FieldTransformation
4407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4408 }
4409
4410
4411 type GooglePrivacyDlpV2FileSet struct {
4412
4413
4414 RegexFileSet *GooglePrivacyDlpV2CloudStorageRegexFileSet `json:"regexFileSet,omitempty"`
4415
4416
4417
4418
4419
4420
4421
4422 Url string `json:"url,omitempty"`
4423
4424
4425
4426
4427
4428 ForceSendFields []string `json:"-"`
4429
4430
4431
4432
4433 NullFields []string `json:"-"`
4434 }
4435
4436 func (s *GooglePrivacyDlpV2FileSet) MarshalJSON() ([]byte, error) {
4437 type NoMethod GooglePrivacyDlpV2FileSet
4438 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4439 }
4440
4441
4442
4443 type GooglePrivacyDlpV2Finding struct {
4444
4445 CreateTime string `json:"createTime,omitempty"`
4446
4447 FindingId string `json:"findingId,omitempty"`
4448
4449
4450 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
4451
4452 JobCreateTime string `json:"jobCreateTime,omitempty"`
4453
4454 JobName string `json:"jobName,omitempty"`
4455
4456
4457
4458
4459
4460
4461
4462 Labels map[string]string `json:"labels,omitempty"`
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473 Likelihood string `json:"likelihood,omitempty"`
4474
4475 Location *GooglePrivacyDlpV2Location `json:"location,omitempty"`
4476
4477
4478
4479 Name string `json:"name,omitempty"`
4480
4481
4482
4483
4484 Quote string `json:"quote,omitempty"`
4485
4486
4487
4488 QuoteInfo *GooglePrivacyDlpV2QuoteInfo `json:"quoteInfo,omitempty"`
4489
4490 ResourceName string `json:"resourceName,omitempty"`
4491
4492 TriggerName string `json:"triggerName,omitempty"`
4493
4494
4495
4496
4497
4498 ForceSendFields []string `json:"-"`
4499
4500
4501
4502
4503 NullFields []string `json:"-"`
4504 }
4505
4506 func (s *GooglePrivacyDlpV2Finding) MarshalJSON() ([]byte, error) {
4507 type NoMethod GooglePrivacyDlpV2Finding
4508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4509 }
4510
4511
4512
4513
4514
4515
4516
4517 type GooglePrivacyDlpV2FindingLimits struct {
4518
4519
4520 MaxFindingsPerInfoType []*GooglePrivacyDlpV2InfoTypeLimit `json:"maxFindingsPerInfoType,omitempty"`
4521
4522
4523
4524
4525
4526
4527 MaxFindingsPerItem int64 `json:"maxFindingsPerItem,omitempty"`
4528
4529
4530
4531
4532
4533
4534
4535 MaxFindingsPerRequest int64 `json:"maxFindingsPerRequest,omitempty"`
4536
4537
4538
4539
4540
4541 ForceSendFields []string `json:"-"`
4542
4543
4544
4545
4546 NullFields []string `json:"-"`
4547 }
4548
4549 func (s *GooglePrivacyDlpV2FindingLimits) MarshalJSON() ([]byte, error) {
4550 type NoMethod GooglePrivacyDlpV2FindingLimits
4551 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4552 }
4553
4554
4555
4556 type GooglePrivacyDlpV2FinishDlpJobRequest struct {
4557 }
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571 type GooglePrivacyDlpV2FixedSizeBucketingConfig struct {
4572
4573
4574
4575
4576 BucketSize float64 `json:"bucketSize,omitempty"`
4577
4578
4579
4580
4581 LowerBound *GooglePrivacyDlpV2Value `json:"lowerBound,omitempty"`
4582
4583
4584
4585
4586 UpperBound *GooglePrivacyDlpV2Value `json:"upperBound,omitempty"`
4587
4588
4589
4590
4591
4592 ForceSendFields []string `json:"-"`
4593
4594
4595
4596
4597 NullFields []string `json:"-"`
4598 }
4599
4600 func (s *GooglePrivacyDlpV2FixedSizeBucketingConfig) MarshalJSON() ([]byte, error) {
4601 type NoMethod GooglePrivacyDlpV2FixedSizeBucketingConfig
4602 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4603 }
4604
4605 func (s *GooglePrivacyDlpV2FixedSizeBucketingConfig) UnmarshalJSON(data []byte) error {
4606 type NoMethod GooglePrivacyDlpV2FixedSizeBucketingConfig
4607 var s1 struct {
4608 BucketSize gensupport.JSONFloat64 `json:"bucketSize"`
4609 *NoMethod
4610 }
4611 s1.NoMethod = (*NoMethod)(s)
4612 if err := json.Unmarshal(data, &s1); err != nil {
4613 return err
4614 }
4615 s.BucketSize = float64(s1.BucketSize)
4616 return nil
4617 }
4618
4619
4620
4621 type GooglePrivacyDlpV2HotwordRule struct {
4622
4623
4624 HotwordRegex *GooglePrivacyDlpV2Regex `json:"hotwordRegex,omitempty"`
4625
4626
4627 LikelihoodAdjustment *GooglePrivacyDlpV2LikelihoodAdjustment `json:"likelihoodAdjustment,omitempty"`
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638 Proximity *GooglePrivacyDlpV2Proximity `json:"proximity,omitempty"`
4639
4640
4641
4642
4643
4644 ForceSendFields []string `json:"-"`
4645
4646
4647
4648
4649 NullFields []string `json:"-"`
4650 }
4651
4652 func (s *GooglePrivacyDlpV2HotwordRule) MarshalJSON() ([]byte, error) {
4653 type NoMethod GooglePrivacyDlpV2HotwordRule
4654 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4655 }
4656
4657
4658
4659 type GooglePrivacyDlpV2HybridContentItem struct {
4660
4661
4662 FindingDetails *GooglePrivacyDlpV2HybridFindingDetails `json:"findingDetails,omitempty"`
4663
4664 Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
4665
4666
4667
4668
4669
4670 ForceSendFields []string `json:"-"`
4671
4672
4673
4674
4675 NullFields []string `json:"-"`
4676 }
4677
4678 func (s *GooglePrivacyDlpV2HybridContentItem) MarshalJSON() ([]byte, error) {
4679 type NoMethod GooglePrivacyDlpV2HybridContentItem
4680 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4681 }
4682
4683
4684
4685 type GooglePrivacyDlpV2HybridFindingDetails struct {
4686
4687
4688 ContainerDetails *GooglePrivacyDlpV2Container `json:"containerDetails,omitempty"`
4689
4690
4691
4692
4693 FileOffset int64 `json:"fileOffset,omitempty,string"`
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703 Labels map[string]string `json:"labels,omitempty"`
4704
4705
4706
4707 RowOffset int64 `json:"rowOffset,omitempty,string"`
4708
4709
4710
4711
4712
4713 TableOptions *GooglePrivacyDlpV2TableOptions `json:"tableOptions,omitempty"`
4714
4715
4716
4717
4718
4719 ForceSendFields []string `json:"-"`
4720
4721
4722
4723
4724 NullFields []string `json:"-"`
4725 }
4726
4727 func (s *GooglePrivacyDlpV2HybridFindingDetails) MarshalJSON() ([]byte, error) {
4728 type NoMethod GooglePrivacyDlpV2HybridFindingDetails
4729 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4730 }
4731
4732
4733
4734 type GooglePrivacyDlpV2HybridInspectDlpJobRequest struct {
4735
4736 HybridItem *GooglePrivacyDlpV2HybridContentItem `json:"hybridItem,omitempty"`
4737
4738
4739
4740
4741
4742 ForceSendFields []string `json:"-"`
4743
4744
4745
4746
4747 NullFields []string `json:"-"`
4748 }
4749
4750 func (s *GooglePrivacyDlpV2HybridInspectDlpJobRequest) MarshalJSON() ([]byte, error) {
4751 type NoMethod GooglePrivacyDlpV2HybridInspectDlpJobRequest
4752 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4753 }
4754
4755
4756
4757 type GooglePrivacyDlpV2HybridInspectJobTriggerRequest struct {
4758
4759 HybridItem *GooglePrivacyDlpV2HybridContentItem `json:"hybridItem,omitempty"`
4760
4761
4762
4763
4764
4765 ForceSendFields []string `json:"-"`
4766
4767
4768
4769
4770 NullFields []string `json:"-"`
4771 }
4772
4773 func (s *GooglePrivacyDlpV2HybridInspectJobTriggerRequest) MarshalJSON() ([]byte, error) {
4774 type NoMethod GooglePrivacyDlpV2HybridInspectJobTriggerRequest
4775 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4776 }
4777
4778
4779
4780 type GooglePrivacyDlpV2HybridInspectResponse struct {
4781
4782 googleapi.ServerResponse `json:"-"`
4783 }
4784
4785
4786
4787 type GooglePrivacyDlpV2HybridInspectStatistics struct {
4788
4789
4790 AbortedCount int64 `json:"abortedCount,omitempty,string"`
4791
4792
4793
4794
4795
4796 PendingCount int64 `json:"pendingCount,omitempty,string"`
4797
4798
4799 ProcessedCount int64 `json:"processedCount,omitempty,string"`
4800
4801
4802
4803
4804
4805 ForceSendFields []string `json:"-"`
4806
4807
4808
4809
4810 NullFields []string `json:"-"`
4811 }
4812
4813 func (s *GooglePrivacyDlpV2HybridInspectStatistics) MarshalJSON() ([]byte, error) {
4814 type NoMethod GooglePrivacyDlpV2HybridInspectStatistics
4815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4816 }
4817
4818
4819
4820 type GooglePrivacyDlpV2HybridOptions struct {
4821
4822
4823 Description string `json:"description,omitempty"`
4824
4825
4826
4827
4828
4829
4830
4831 Labels map[string]string `json:"labels,omitempty"`
4832
4833
4834
4835
4836
4837 RequiredFindingLabelKeys []string `json:"requiredFindingLabelKeys,omitempty"`
4838
4839
4840 TableOptions *GooglePrivacyDlpV2TableOptions `json:"tableOptions,omitempty"`
4841
4842
4843
4844
4845
4846 ForceSendFields []string `json:"-"`
4847
4848
4849
4850
4851 NullFields []string `json:"-"`
4852 }
4853
4854 func (s *GooglePrivacyDlpV2HybridOptions) MarshalJSON() ([]byte, error) {
4855 type NoMethod GooglePrivacyDlpV2HybridOptions
4856 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4857 }
4858
4859
4860 type GooglePrivacyDlpV2ImageLocation struct {
4861
4862
4863 BoundingBoxes []*GooglePrivacyDlpV2BoundingBox `json:"boundingBoxes,omitempty"`
4864
4865
4866
4867
4868
4869 ForceSendFields []string `json:"-"`
4870
4871
4872
4873
4874 NullFields []string `json:"-"`
4875 }
4876
4877 func (s *GooglePrivacyDlpV2ImageLocation) MarshalJSON() ([]byte, error) {
4878 type NoMethod GooglePrivacyDlpV2ImageLocation
4879 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4880 }
4881
4882
4883
4884 type GooglePrivacyDlpV2ImageRedactionConfig struct {
4885
4886
4887
4888
4889 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
4890
4891
4892 RedactAllText bool `json:"redactAllText,omitempty"`
4893
4894
4895 RedactionColor *GooglePrivacyDlpV2Color `json:"redactionColor,omitempty"`
4896
4897
4898
4899
4900
4901 ForceSendFields []string `json:"-"`
4902
4903
4904
4905
4906 NullFields []string `json:"-"`
4907 }
4908
4909 func (s *GooglePrivacyDlpV2ImageRedactionConfig) MarshalJSON() ([]byte, error) {
4910 type NoMethod GooglePrivacyDlpV2ImageRedactionConfig
4911 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4912 }
4913
4914
4915
4916 type GooglePrivacyDlpV2ImageTransformation struct {
4917
4918
4919
4920 AllInfoTypes *GooglePrivacyDlpV2AllInfoTypes `json:"allInfoTypes,omitempty"`
4921
4922
4923 AllText *GooglePrivacyDlpV2AllText `json:"allText,omitempty"`
4924
4925
4926 RedactionColor *GooglePrivacyDlpV2Color `json:"redactionColor,omitempty"`
4927
4928 SelectedInfoTypes *GooglePrivacyDlpV2SelectedInfoTypes `json:"selectedInfoTypes,omitempty"`
4929
4930
4931
4932
4933
4934 ForceSendFields []string `json:"-"`
4935
4936
4937
4938
4939 NullFields []string `json:"-"`
4940 }
4941
4942 func (s *GooglePrivacyDlpV2ImageTransformation) MarshalJSON() ([]byte, error) {
4943 type NoMethod GooglePrivacyDlpV2ImageTransformation
4944 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4945 }
4946
4947
4948
4949 type GooglePrivacyDlpV2ImageTransformations struct {
4950
4951 Transforms []*GooglePrivacyDlpV2ImageTransformation `json:"transforms,omitempty"`
4952
4953
4954
4955
4956
4957 ForceSendFields []string `json:"-"`
4958
4959
4960
4961
4962 NullFields []string `json:"-"`
4963 }
4964
4965 func (s *GooglePrivacyDlpV2ImageTransformations) MarshalJSON() ([]byte, error) {
4966 type NoMethod GooglePrivacyDlpV2ImageTransformations
4967 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4968 }
4969
4970
4971 type GooglePrivacyDlpV2InfoType struct {
4972
4973
4974
4975
4976
4977
4978 Name string `json:"name,omitempty"`
4979
4980
4981 SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
4982
4983 Version string `json:"version,omitempty"`
4984
4985
4986
4987
4988
4989 ForceSendFields []string `json:"-"`
4990
4991
4992
4993
4994 NullFields []string `json:"-"`
4995 }
4996
4997 func (s *GooglePrivacyDlpV2InfoType) MarshalJSON() ([]byte, error) {
4998 type NoMethod GooglePrivacyDlpV2InfoType
4999 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5000 }
5001
5002
5003
5004 type GooglePrivacyDlpV2InfoTypeCategory struct {
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014 IndustryCategory string `json:"industryCategory,omitempty"`
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068 LocationCategory string `json:"locationCategory,omitempty"`
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086 TypeCategory string `json:"typeCategory,omitempty"`
5087
5088
5089
5090
5091
5092 ForceSendFields []string `json:"-"`
5093
5094
5095
5096
5097 NullFields []string `json:"-"`
5098 }
5099
5100 func (s *GooglePrivacyDlpV2InfoTypeCategory) MarshalJSON() ([]byte, error) {
5101 type NoMethod GooglePrivacyDlpV2InfoTypeCategory
5102 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5103 }
5104
5105
5106 type GooglePrivacyDlpV2InfoTypeDescription struct {
5107
5108 Categories []*GooglePrivacyDlpV2InfoTypeCategory `json:"categories,omitempty"`
5109
5110
5111 Description string `json:"description,omitempty"`
5112
5113 DisplayName string `json:"displayName,omitempty"`
5114
5115 Name string `json:"name,omitempty"`
5116
5117 SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
5118
5119
5120
5121
5122
5123
5124 SupportedBy []string `json:"supportedBy,omitempty"`
5125
5126 Versions []*GooglePrivacyDlpV2VersionDescription `json:"versions,omitempty"`
5127
5128
5129
5130
5131
5132 ForceSendFields []string `json:"-"`
5133
5134
5135
5136
5137 NullFields []string `json:"-"`
5138 }
5139
5140 func (s *GooglePrivacyDlpV2InfoTypeDescription) MarshalJSON() ([]byte, error) {
5141 type NoMethod GooglePrivacyDlpV2InfoTypeDescription
5142 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5143 }
5144
5145
5146
5147
5148
5149
5150 type GooglePrivacyDlpV2InfoTypeLikelihood struct {
5151
5152
5153
5154 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 MinLikelihood string `json:"minLikelihood,omitempty"`
5167
5168
5169
5170
5171
5172 ForceSendFields []string `json:"-"`
5173
5174
5175
5176
5177 NullFields []string `json:"-"`
5178 }
5179
5180 func (s *GooglePrivacyDlpV2InfoTypeLikelihood) MarshalJSON() ([]byte, error) {
5181 type NoMethod GooglePrivacyDlpV2InfoTypeLikelihood
5182 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5183 }
5184
5185
5186
5187 type GooglePrivacyDlpV2InfoTypeLimit struct {
5188
5189
5190
5191
5192 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
5193
5194 MaxFindings int64 `json:"maxFindings,omitempty"`
5195
5196
5197
5198
5199
5200 ForceSendFields []string `json:"-"`
5201
5202
5203
5204
5205 NullFields []string `json:"-"`
5206 }
5207
5208 func (s *GooglePrivacyDlpV2InfoTypeLimit) MarshalJSON() ([]byte, error) {
5209 type NoMethod GooglePrivacyDlpV2InfoTypeLimit
5210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5211 }
5212
5213
5214 type GooglePrivacyDlpV2InfoTypeStats struct {
5215
5216 Count int64 `json:"count,omitempty,string"`
5217
5218 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
5219
5220
5221
5222
5223
5224 ForceSendFields []string `json:"-"`
5225
5226
5227
5228
5229 NullFields []string `json:"-"`
5230 }
5231
5232 func (s *GooglePrivacyDlpV2InfoTypeStats) MarshalJSON() ([]byte, error) {
5233 type NoMethod GooglePrivacyDlpV2InfoTypeStats
5234 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5235 }
5236
5237
5238 type GooglePrivacyDlpV2InfoTypeSummary struct {
5239
5240 EstimatedPrevalence int64 `json:"estimatedPrevalence,omitempty"`
5241
5242 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
5243
5244
5245
5246
5247
5248 ForceSendFields []string `json:"-"`
5249
5250
5251
5252
5253 NullFields []string `json:"-"`
5254 }
5255
5256 func (s *GooglePrivacyDlpV2InfoTypeSummary) MarshalJSON() ([]byte, error) {
5257 type NoMethod GooglePrivacyDlpV2InfoTypeSummary
5258 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5259 }
5260
5261
5262
5263 type GooglePrivacyDlpV2InfoTypeTransformation struct {
5264
5265
5266
5267 InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
5268
5269
5270 PrimitiveTransformation *GooglePrivacyDlpV2PrimitiveTransformation `json:"primitiveTransformation,omitempty"`
5271
5272
5273
5274
5275
5276 ForceSendFields []string `json:"-"`
5277
5278
5279
5280
5281 NullFields []string `json:"-"`
5282 }
5283
5284 func (s *GooglePrivacyDlpV2InfoTypeTransformation) MarshalJSON() ([]byte, error) {
5285 type NoMethod GooglePrivacyDlpV2InfoTypeTransformation
5286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5287 }
5288
5289
5290
5291
5292
5293 type GooglePrivacyDlpV2InfoTypeTransformations struct {
5294
5295
5296 Transformations []*GooglePrivacyDlpV2InfoTypeTransformation `json:"transformations,omitempty"`
5297
5298
5299
5300
5301
5302 ForceSendFields []string `json:"-"`
5303
5304
5305
5306
5307 NullFields []string `json:"-"`
5308 }
5309
5310 func (s *GooglePrivacyDlpV2InfoTypeTransformations) MarshalJSON() ([]byte, error) {
5311 type NoMethod GooglePrivacyDlpV2InfoTypeTransformations
5312 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5313 }
5314
5315
5316
5317
5318 type GooglePrivacyDlpV2InspectConfig struct {
5319
5320
5321
5322
5323
5324
5325
5326 ContentOptions []string `json:"contentOptions,omitempty"`
5327
5328
5329
5330 CustomInfoTypes []*GooglePrivacyDlpV2CustomInfoType `json:"customInfoTypes,omitempty"`
5331
5332
5333 ExcludeInfoTypes bool `json:"excludeInfoTypes,omitempty"`
5334
5335
5336
5337 IncludeQuote bool `json:"includeQuote,omitempty"`
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347 InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357 Limits *GooglePrivacyDlpV2FindingLimits `json:"limits,omitempty"`
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 MinLikelihood string `json:"minLikelihood,omitempty"`
5373
5374
5375
5376
5377 MinLikelihoodPerInfoType []*GooglePrivacyDlpV2InfoTypeLikelihood `json:"minLikelihoodPerInfoType,omitempty"`
5378
5379
5380
5381 RuleSet []*GooglePrivacyDlpV2InspectionRuleSet `json:"ruleSet,omitempty"`
5382
5383
5384
5385
5386
5387 ForceSendFields []string `json:"-"`
5388
5389
5390
5391
5392 NullFields []string `json:"-"`
5393 }
5394
5395 func (s *GooglePrivacyDlpV2InspectConfig) MarshalJSON() ([]byte, error) {
5396 type NoMethod GooglePrivacyDlpV2InspectConfig
5397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5398 }
5399
5400
5401
5402 type GooglePrivacyDlpV2InspectContentRequest struct {
5403
5404
5405 InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
5406
5407
5408
5409
5410
5411 InspectTemplateName string `json:"inspectTemplateName,omitempty"`
5412
5413 Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
5414
5415 LocationId string `json:"locationId,omitempty"`
5416
5417
5418
5419
5420
5421 ForceSendFields []string `json:"-"`
5422
5423
5424
5425
5426 NullFields []string `json:"-"`
5427 }
5428
5429 func (s *GooglePrivacyDlpV2InspectContentRequest) MarshalJSON() ([]byte, error) {
5430 type NoMethod GooglePrivacyDlpV2InspectContentRequest
5431 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5432 }
5433
5434
5435 type GooglePrivacyDlpV2InspectContentResponse struct {
5436
5437 Result *GooglePrivacyDlpV2InspectResult `json:"result,omitempty"`
5438
5439
5440 googleapi.ServerResponse `json:"-"`
5441
5442
5443
5444
5445
5446 ForceSendFields []string `json:"-"`
5447
5448
5449
5450
5451 NullFields []string `json:"-"`
5452 }
5453
5454 func (s *GooglePrivacyDlpV2InspectContentResponse) MarshalJSON() ([]byte, error) {
5455 type NoMethod GooglePrivacyDlpV2InspectContentResponse
5456 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5457 }
5458
5459
5460
5461 type GooglePrivacyDlpV2InspectDataSourceDetails struct {
5462
5463 RequestedOptions *GooglePrivacyDlpV2RequestedOptions `json:"requestedOptions,omitempty"`
5464
5465 Result *GooglePrivacyDlpV2Result `json:"result,omitempty"`
5466
5467
5468
5469
5470
5471 ForceSendFields []string `json:"-"`
5472
5473
5474
5475
5476 NullFields []string `json:"-"`
5477 }
5478
5479 func (s *GooglePrivacyDlpV2InspectDataSourceDetails) MarshalJSON() ([]byte, error) {
5480 type NoMethod GooglePrivacyDlpV2InspectDataSourceDetails
5481 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5482 }
5483
5484
5485
5486 type GooglePrivacyDlpV2InspectJobConfig struct {
5487
5488 Actions []*GooglePrivacyDlpV2Action `json:"actions,omitempty"`
5489
5490 InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
5491
5492
5493
5494 InspectTemplateName string `json:"inspectTemplateName,omitempty"`
5495
5496 StorageConfig *GooglePrivacyDlpV2StorageConfig `json:"storageConfig,omitempty"`
5497
5498
5499
5500
5501
5502 ForceSendFields []string `json:"-"`
5503
5504
5505
5506
5507 NullFields []string `json:"-"`
5508 }
5509
5510 func (s *GooglePrivacyDlpV2InspectJobConfig) MarshalJSON() ([]byte, error) {
5511 type NoMethod GooglePrivacyDlpV2InspectJobConfig
5512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5513 }
5514
5515
5516 type GooglePrivacyDlpV2InspectResult struct {
5517
5518 Findings []*GooglePrivacyDlpV2Finding `json:"findings,omitempty"`
5519
5520
5521
5522
5523
5524
5525 FindingsTruncated bool `json:"findingsTruncated,omitempty"`
5526
5527
5528
5529
5530
5531 ForceSendFields []string `json:"-"`
5532
5533
5534
5535
5536 NullFields []string `json:"-"`
5537 }
5538
5539 func (s *GooglePrivacyDlpV2InspectResult) MarshalJSON() ([]byte, error) {
5540 type NoMethod GooglePrivacyDlpV2InspectResult
5541 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5542 }
5543
5544
5545
5546
5547
5548
5549 type GooglePrivacyDlpV2InspectTemplate struct {
5550
5551 CreateTime string `json:"createTime,omitempty"`
5552
5553 Description string `json:"description,omitempty"`
5554
5555 DisplayName string `json:"displayName,omitempty"`
5556
5557
5558 InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
5559
5560
5561
5562 Name string `json:"name,omitempty"`
5563
5564 UpdateTime string `json:"updateTime,omitempty"`
5565
5566
5567 googleapi.ServerResponse `json:"-"`
5568
5569
5570
5571
5572
5573 ForceSendFields []string `json:"-"`
5574
5575
5576
5577
5578 NullFields []string `json:"-"`
5579 }
5580
5581 func (s *GooglePrivacyDlpV2InspectTemplate) MarshalJSON() ([]byte, error) {
5582 type NoMethod GooglePrivacyDlpV2InspectTemplate
5583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5584 }
5585
5586
5587
5588 type GooglePrivacyDlpV2InspectionRule struct {
5589
5590 ExclusionRule *GooglePrivacyDlpV2ExclusionRule `json:"exclusionRule,omitempty"`
5591
5592 HotwordRule *GooglePrivacyDlpV2HotwordRule `json:"hotwordRule,omitempty"`
5593
5594
5595
5596
5597
5598 ForceSendFields []string `json:"-"`
5599
5600
5601
5602
5603 NullFields []string `json:"-"`
5604 }
5605
5606 func (s *GooglePrivacyDlpV2InspectionRule) MarshalJSON() ([]byte, error) {
5607 type NoMethod GooglePrivacyDlpV2InspectionRule
5608 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5609 }
5610
5611
5612
5613
5614 type GooglePrivacyDlpV2InspectionRuleSet struct {
5615
5616 InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
5617
5618
5619 Rules []*GooglePrivacyDlpV2InspectionRule `json:"rules,omitempty"`
5620
5621
5622
5623
5624
5625 ForceSendFields []string `json:"-"`
5626
5627
5628
5629
5630 NullFields []string `json:"-"`
5631 }
5632
5633 func (s *GooglePrivacyDlpV2InspectionRuleSet) MarshalJSON() ([]byte, error) {
5634 type NoMethod GooglePrivacyDlpV2InspectionRuleSet
5635 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5636 }
5637
5638
5639
5640
5641
5642 type GooglePrivacyDlpV2JobNotificationEmails struct {
5643 }
5644
5645
5646
5647
5648
5649 type GooglePrivacyDlpV2JobTrigger struct {
5650
5651 CreateTime string `json:"createTime,omitempty"`
5652
5653 Description string `json:"description,omitempty"`
5654
5655 DisplayName string `json:"displayName,omitempty"`
5656
5657
5658
5659
5660 Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
5661
5662 InspectJob *GooglePrivacyDlpV2InspectJobConfig `json:"inspectJob,omitempty"`
5663
5664
5665 LastRunTime string `json:"lastRunTime,omitempty"`
5666
5667
5668
5669 Name string `json:"name,omitempty"`
5670
5671
5672
5673
5674
5675
5676
5677 Status string `json:"status,omitempty"`
5678
5679
5680
5681 Triggers []*GooglePrivacyDlpV2Trigger `json:"triggers,omitempty"`
5682
5683 UpdateTime string `json:"updateTime,omitempty"`
5684
5685
5686 googleapi.ServerResponse `json:"-"`
5687
5688
5689
5690
5691
5692 ForceSendFields []string `json:"-"`
5693
5694
5695
5696
5697 NullFields []string `json:"-"`
5698 }
5699
5700 func (s *GooglePrivacyDlpV2JobTrigger) MarshalJSON() ([]byte, error) {
5701 type NoMethod GooglePrivacyDlpV2JobTrigger
5702 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5703 }
5704
5705
5706
5707 type GooglePrivacyDlpV2KAnonymityConfig struct {
5708
5709
5710
5711
5712
5713
5714
5715
5716 EntityId *GooglePrivacyDlpV2EntityId `json:"entityId,omitempty"`
5717
5718
5719
5720
5721
5722 QuasiIds []*GooglePrivacyDlpV2FieldId `json:"quasiIds,omitempty"`
5723
5724
5725
5726
5727
5728 ForceSendFields []string `json:"-"`
5729
5730
5731
5732
5733 NullFields []string `json:"-"`
5734 }
5735
5736 func (s *GooglePrivacyDlpV2KAnonymityConfig) MarshalJSON() ([]byte, error) {
5737 type NoMethod GooglePrivacyDlpV2KAnonymityConfig
5738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5739 }
5740
5741
5742
5743 type GooglePrivacyDlpV2KAnonymityEquivalenceClass struct {
5744
5745
5746 EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
5747
5748
5749
5750 QuasiIdsValues []*GooglePrivacyDlpV2Value `json:"quasiIdsValues,omitempty"`
5751
5752
5753
5754
5755
5756 ForceSendFields []string `json:"-"`
5757
5758
5759
5760
5761 NullFields []string `json:"-"`
5762 }
5763
5764 func (s *GooglePrivacyDlpV2KAnonymityEquivalenceClass) MarshalJSON() ([]byte, error) {
5765 type NoMethod GooglePrivacyDlpV2KAnonymityEquivalenceClass
5766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5767 }
5768
5769
5770
5771 type GooglePrivacyDlpV2KAnonymityHistogramBucket struct {
5772
5773 BucketSize int64 `json:"bucketSize,omitempty,string"`
5774
5775
5776 BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
5777
5778
5779 BucketValues []*GooglePrivacyDlpV2KAnonymityEquivalenceClass `json:"bucketValues,omitempty"`
5780
5781
5782 EquivalenceClassSizeLowerBound int64 `json:"equivalenceClassSizeLowerBound,omitempty,string"`
5783
5784
5785 EquivalenceClassSizeUpperBound int64 `json:"equivalenceClassSizeUpperBound,omitempty,string"`
5786
5787
5788
5789
5790
5791 ForceSendFields []string `json:"-"`
5792
5793
5794
5795
5796 NullFields []string `json:"-"`
5797 }
5798
5799 func (s *GooglePrivacyDlpV2KAnonymityHistogramBucket) MarshalJSON() ([]byte, error) {
5800 type NoMethod GooglePrivacyDlpV2KAnonymityHistogramBucket
5801 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5802 }
5803
5804
5805 type GooglePrivacyDlpV2KAnonymityResult struct {
5806
5807
5808 EquivalenceClassHistogramBuckets []*GooglePrivacyDlpV2KAnonymityHistogramBucket `json:"equivalenceClassHistogramBuckets,omitempty"`
5809
5810
5811
5812
5813
5814
5815 ForceSendFields []string `json:"-"`
5816
5817
5818
5819
5820
5821 NullFields []string `json:"-"`
5822 }
5823
5824 func (s *GooglePrivacyDlpV2KAnonymityResult) MarshalJSON() ([]byte, error) {
5825 type NoMethod GooglePrivacyDlpV2KAnonymityResult
5826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5827 }
5828
5829
5830
5831
5832
5833
5834
5835
5836 type GooglePrivacyDlpV2KMapEstimationConfig struct {
5837
5838
5839
5840 AuxiliaryTables []*GooglePrivacyDlpV2AuxiliaryTable `json:"auxiliaryTables,omitempty"`
5841
5842
5843 QuasiIds []*GooglePrivacyDlpV2TaggedField `json:"quasiIds,omitempty"`
5844
5845
5846
5847 RegionCode string `json:"regionCode,omitempty"`
5848
5849
5850
5851
5852
5853 ForceSendFields []string `json:"-"`
5854
5855
5856
5857
5858 NullFields []string `json:"-"`
5859 }
5860
5861 func (s *GooglePrivacyDlpV2KMapEstimationConfig) MarshalJSON() ([]byte, error) {
5862 type NoMethod GooglePrivacyDlpV2KMapEstimationConfig
5863 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5864 }
5865
5866
5867
5868
5869
5870
5871
5872
5873 type GooglePrivacyDlpV2KMapEstimationHistogramBucket struct {
5874
5875 BucketSize int64 `json:"bucketSize,omitempty,string"`
5876
5877
5878 BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
5879
5880
5881 BucketValues []*GooglePrivacyDlpV2KMapEstimationQuasiIdValues `json:"bucketValues,omitempty"`
5882
5883 MaxAnonymity int64 `json:"maxAnonymity,omitempty,string"`
5884
5885 MinAnonymity int64 `json:"minAnonymity,omitempty,string"`
5886
5887
5888
5889
5890
5891 ForceSendFields []string `json:"-"`
5892
5893
5894
5895
5896 NullFields []string `json:"-"`
5897 }
5898
5899 func (s *GooglePrivacyDlpV2KMapEstimationHistogramBucket) MarshalJSON() ([]byte, error) {
5900 type NoMethod GooglePrivacyDlpV2KMapEstimationHistogramBucket
5901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5902 }
5903
5904
5905
5906 type GooglePrivacyDlpV2KMapEstimationQuasiIdValues struct {
5907
5908
5909 EstimatedAnonymity int64 `json:"estimatedAnonymity,omitempty,string"`
5910
5911 QuasiIdsValues []*GooglePrivacyDlpV2Value `json:"quasiIdsValues,omitempty"`
5912
5913
5914
5915
5916
5917 ForceSendFields []string `json:"-"`
5918
5919
5920
5921
5922 NullFields []string `json:"-"`
5923 }
5924
5925 func (s *GooglePrivacyDlpV2KMapEstimationQuasiIdValues) MarshalJSON() ([]byte, error) {
5926 type NoMethod GooglePrivacyDlpV2KMapEstimationQuasiIdValues
5927 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5928 }
5929
5930
5931
5932 type GooglePrivacyDlpV2KMapEstimationResult struct {
5933
5934
5935
5936
5937
5938
5939
5940 KMapEstimationHistogram []*GooglePrivacyDlpV2KMapEstimationHistogramBucket `json:"kMapEstimationHistogram,omitempty"`
5941
5942
5943
5944
5945
5946 ForceSendFields []string `json:"-"`
5947
5948
5949
5950
5951 NullFields []string `json:"-"`
5952 }
5953
5954 func (s *GooglePrivacyDlpV2KMapEstimationResult) MarshalJSON() ([]byte, error) {
5955 type NoMethod GooglePrivacyDlpV2KMapEstimationResult
5956 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5957 }
5958
5959
5960
5961
5962
5963 type GooglePrivacyDlpV2Key struct {
5964
5965
5966 PartitionId *GooglePrivacyDlpV2PartitionId `json:"partitionId,omitempty"`
5967
5968
5969
5970
5971
5972
5973
5974 Path []*GooglePrivacyDlpV2PathElement `json:"path,omitempty"`
5975
5976
5977
5978
5979
5980 ForceSendFields []string `json:"-"`
5981
5982
5983
5984
5985 NullFields []string `json:"-"`
5986 }
5987
5988 func (s *GooglePrivacyDlpV2Key) MarshalJSON() ([]byte, error) {
5989 type NoMethod GooglePrivacyDlpV2Key
5990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5991 }
5992
5993
5994 type GooglePrivacyDlpV2KindExpression struct {
5995
5996 Name string `json:"name,omitempty"`
5997
5998
5999
6000
6001
6002 ForceSendFields []string `json:"-"`
6003
6004
6005
6006
6007 NullFields []string `json:"-"`
6008 }
6009
6010 func (s *GooglePrivacyDlpV2KindExpression) MarshalJSON() ([]byte, error) {
6011 type NoMethod GooglePrivacyDlpV2KindExpression
6012 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6013 }
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023 type GooglePrivacyDlpV2KmsWrappedCryptoKey struct {
6024
6025
6026 CryptoKeyName string `json:"cryptoKeyName,omitempty"`
6027
6028 WrappedKey string `json:"wrappedKey,omitempty"`
6029
6030
6031
6032
6033
6034 ForceSendFields []string `json:"-"`
6035
6036
6037
6038
6039 NullFields []string `json:"-"`
6040 }
6041
6042 func (s *GooglePrivacyDlpV2KmsWrappedCryptoKey) MarshalJSON() ([]byte, error) {
6043 type NoMethod GooglePrivacyDlpV2KmsWrappedCryptoKey
6044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6045 }
6046
6047
6048
6049 type GooglePrivacyDlpV2LDiversityConfig struct {
6050
6051
6052
6053 QuasiIds []*GooglePrivacyDlpV2FieldId `json:"quasiIds,omitempty"`
6054
6055 SensitiveAttribute *GooglePrivacyDlpV2FieldId `json:"sensitiveAttribute,omitempty"`
6056
6057
6058
6059
6060
6061 ForceSendFields []string `json:"-"`
6062
6063
6064
6065
6066 NullFields []string `json:"-"`
6067 }
6068
6069 func (s *GooglePrivacyDlpV2LDiversityConfig) MarshalJSON() ([]byte, error) {
6070 type NoMethod GooglePrivacyDlpV2LDiversityConfig
6071 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6072 }
6073
6074
6075
6076 type GooglePrivacyDlpV2LDiversityEquivalenceClass struct {
6077
6078 EquivalenceClassSize int64 `json:"equivalenceClassSize,omitempty,string"`
6079
6080
6081 NumDistinctSensitiveValues int64 `json:"numDistinctSensitiveValues,omitempty,string"`
6082
6083
6084 QuasiIdsValues []*GooglePrivacyDlpV2Value `json:"quasiIdsValues,omitempty"`
6085
6086 TopSensitiveValues []*GooglePrivacyDlpV2ValueFrequency `json:"topSensitiveValues,omitempty"`
6087
6088
6089
6090
6091
6092 ForceSendFields []string `json:"-"`
6093
6094
6095
6096
6097 NullFields []string `json:"-"`
6098 }
6099
6100 func (s *GooglePrivacyDlpV2LDiversityEquivalenceClass) MarshalJSON() ([]byte, error) {
6101 type NoMethod GooglePrivacyDlpV2LDiversityEquivalenceClass
6102 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6103 }
6104
6105
6106
6107 type GooglePrivacyDlpV2LDiversityHistogramBucket struct {
6108
6109 BucketSize int64 `json:"bucketSize,omitempty,string"`
6110
6111
6112 BucketValueCount int64 `json:"bucketValueCount,omitempty,string"`
6113
6114
6115 BucketValues []*GooglePrivacyDlpV2LDiversityEquivalenceClass `json:"bucketValues,omitempty"`
6116
6117
6118 SensitiveValueFrequencyLowerBound int64 `json:"sensitiveValueFrequencyLowerBound,omitempty,string"`
6119
6120
6121 SensitiveValueFrequencyUpperBound int64 `json:"sensitiveValueFrequencyUpperBound,omitempty,string"`
6122
6123
6124
6125
6126
6127 ForceSendFields []string `json:"-"`
6128
6129
6130
6131
6132 NullFields []string `json:"-"`
6133 }
6134
6135 func (s *GooglePrivacyDlpV2LDiversityHistogramBucket) MarshalJSON() ([]byte, error) {
6136 type NoMethod GooglePrivacyDlpV2LDiversityHistogramBucket
6137 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6138 }
6139
6140
6141 type GooglePrivacyDlpV2LDiversityResult struct {
6142
6143
6144 SensitiveValueFrequencyHistogramBuckets []*GooglePrivacyDlpV2LDiversityHistogramBucket `json:"sensitiveValueFrequencyHistogramBuckets,omitempty"`
6145
6146
6147
6148
6149
6150
6151 ForceSendFields []string `json:"-"`
6152
6153
6154
6155
6156
6157 NullFields []string `json:"-"`
6158 }
6159
6160 func (s *GooglePrivacyDlpV2LDiversityResult) MarshalJSON() ([]byte, error) {
6161 type NoMethod GooglePrivacyDlpV2LDiversityResult
6162 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6163 }
6164
6165
6166
6167
6168
6169
6170
6171
6172 type GooglePrivacyDlpV2LargeCustomDictionaryConfig struct {
6173
6174
6175 BigQueryField *GooglePrivacyDlpV2BigQueryField `json:"bigQueryField,omitempty"`
6176
6177
6178 CloudStorageFileSet *GooglePrivacyDlpV2CloudStorageFileSet `json:"cloudStorageFileSet,omitempty"`
6179
6180
6181
6182
6183 OutputPath *GooglePrivacyDlpV2CloudStoragePath `json:"outputPath,omitempty"`
6184
6185
6186
6187
6188
6189 ForceSendFields []string `json:"-"`
6190
6191
6192
6193
6194 NullFields []string `json:"-"`
6195 }
6196
6197 func (s *GooglePrivacyDlpV2LargeCustomDictionaryConfig) MarshalJSON() ([]byte, error) {
6198 type NoMethod GooglePrivacyDlpV2LargeCustomDictionaryConfig
6199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6200 }
6201
6202
6203
6204 type GooglePrivacyDlpV2LargeCustomDictionaryStats struct {
6205
6206 ApproxNumPhrases int64 `json:"approxNumPhrases,omitempty,string"`
6207
6208
6209
6210
6211
6212 ForceSendFields []string `json:"-"`
6213
6214
6215
6216
6217 NullFields []string `json:"-"`
6218 }
6219
6220 func (s *GooglePrivacyDlpV2LargeCustomDictionaryStats) MarshalJSON() ([]byte, error) {
6221 type NoMethod GooglePrivacyDlpV2LargeCustomDictionaryStats
6222 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6223 }
6224
6225
6226
6227
6228
6229 type GooglePrivacyDlpV2LeaveUntransformed struct {
6230 }
6231
6232
6233
6234 type GooglePrivacyDlpV2LikelihoodAdjustment struct {
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245 FixedLikelihood string `json:"fixedLikelihood,omitempty"`
6246
6247
6248
6249
6250
6251
6252
6253 RelativeLikelihood int64 `json:"relativeLikelihood,omitempty"`
6254
6255
6256
6257
6258
6259 ForceSendFields []string `json:"-"`
6260
6261
6262
6263
6264 NullFields []string `json:"-"`
6265 }
6266
6267 func (s *GooglePrivacyDlpV2LikelihoodAdjustment) MarshalJSON() ([]byte, error) {
6268 type NoMethod GooglePrivacyDlpV2LikelihoodAdjustment
6269 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6270 }
6271
6272
6273
6274 type GooglePrivacyDlpV2ListColumnDataProfilesResponse struct {
6275
6276 ColumnDataProfiles []*GooglePrivacyDlpV2ColumnDataProfile `json:"columnDataProfiles,omitempty"`
6277
6278 NextPageToken string `json:"nextPageToken,omitempty"`
6279
6280
6281 googleapi.ServerResponse `json:"-"`
6282
6283
6284
6285
6286
6287 ForceSendFields []string `json:"-"`
6288
6289
6290
6291
6292 NullFields []string `json:"-"`
6293 }
6294
6295 func (s *GooglePrivacyDlpV2ListColumnDataProfilesResponse) MarshalJSON() ([]byte, error) {
6296 type NoMethod GooglePrivacyDlpV2ListColumnDataProfilesResponse
6297 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6298 }
6299
6300
6301
6302 type GooglePrivacyDlpV2ListConnectionsResponse struct {
6303
6304 Connections []*GooglePrivacyDlpV2Connection `json:"connections,omitempty"`
6305
6306
6307 NextPageToken string `json:"nextPageToken,omitempty"`
6308
6309
6310 googleapi.ServerResponse `json:"-"`
6311
6312
6313
6314
6315
6316 ForceSendFields []string `json:"-"`
6317
6318
6319
6320
6321 NullFields []string `json:"-"`
6322 }
6323
6324 func (s *GooglePrivacyDlpV2ListConnectionsResponse) MarshalJSON() ([]byte, error) {
6325 type NoMethod GooglePrivacyDlpV2ListConnectionsResponse
6326 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6327 }
6328
6329
6330
6331 type GooglePrivacyDlpV2ListDeidentifyTemplatesResponse struct {
6332
6333
6334 DeidentifyTemplates []*GooglePrivacyDlpV2DeidentifyTemplate `json:"deidentifyTemplates,omitempty"`
6335
6336
6337 NextPageToken string `json:"nextPageToken,omitempty"`
6338
6339
6340 googleapi.ServerResponse `json:"-"`
6341
6342
6343
6344
6345
6346 ForceSendFields []string `json:"-"`
6347
6348
6349
6350
6351 NullFields []string `json:"-"`
6352 }
6353
6354 func (s *GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) MarshalJSON() ([]byte, error) {
6355 type NoMethod GooglePrivacyDlpV2ListDeidentifyTemplatesResponse
6356 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6357 }
6358
6359
6360
6361 type GooglePrivacyDlpV2ListDiscoveryConfigsResponse struct {
6362
6363
6364 DiscoveryConfigs []*GooglePrivacyDlpV2DiscoveryConfig `json:"discoveryConfigs,omitempty"`
6365
6366
6367 NextPageToken string `json:"nextPageToken,omitempty"`
6368
6369
6370 googleapi.ServerResponse `json:"-"`
6371
6372
6373
6374
6375
6376 ForceSendFields []string `json:"-"`
6377
6378
6379
6380
6381 NullFields []string `json:"-"`
6382 }
6383
6384 func (s *GooglePrivacyDlpV2ListDiscoveryConfigsResponse) MarshalJSON() ([]byte, error) {
6385 type NoMethod GooglePrivacyDlpV2ListDiscoveryConfigsResponse
6386 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6387 }
6388
6389
6390
6391 type GooglePrivacyDlpV2ListDlpJobsResponse struct {
6392
6393 Jobs []*GooglePrivacyDlpV2DlpJob `json:"jobs,omitempty"`
6394
6395 NextPageToken string `json:"nextPageToken,omitempty"`
6396
6397
6398 googleapi.ServerResponse `json:"-"`
6399
6400
6401
6402
6403
6404 ForceSendFields []string `json:"-"`
6405
6406
6407
6408
6409 NullFields []string `json:"-"`
6410 }
6411
6412 func (s *GooglePrivacyDlpV2ListDlpJobsResponse) MarshalJSON() ([]byte, error) {
6413 type NoMethod GooglePrivacyDlpV2ListDlpJobsResponse
6414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6415 }
6416
6417
6418
6419 type GooglePrivacyDlpV2ListInfoTypesResponse struct {
6420
6421 InfoTypes []*GooglePrivacyDlpV2InfoTypeDescription `json:"infoTypes,omitempty"`
6422
6423
6424 googleapi.ServerResponse `json:"-"`
6425
6426
6427
6428
6429
6430 ForceSendFields []string `json:"-"`
6431
6432
6433
6434
6435 NullFields []string `json:"-"`
6436 }
6437
6438 func (s *GooglePrivacyDlpV2ListInfoTypesResponse) MarshalJSON() ([]byte, error) {
6439 type NoMethod GooglePrivacyDlpV2ListInfoTypesResponse
6440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6441 }
6442
6443
6444
6445 type GooglePrivacyDlpV2ListInspectTemplatesResponse struct {
6446
6447
6448 InspectTemplates []*GooglePrivacyDlpV2InspectTemplate `json:"inspectTemplates,omitempty"`
6449
6450
6451 NextPageToken string `json:"nextPageToken,omitempty"`
6452
6453
6454 googleapi.ServerResponse `json:"-"`
6455
6456
6457
6458
6459
6460 ForceSendFields []string `json:"-"`
6461
6462
6463
6464
6465 NullFields []string `json:"-"`
6466 }
6467
6468 func (s *GooglePrivacyDlpV2ListInspectTemplatesResponse) MarshalJSON() ([]byte, error) {
6469 type NoMethod GooglePrivacyDlpV2ListInspectTemplatesResponse
6470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6471 }
6472
6473
6474
6475 type GooglePrivacyDlpV2ListJobTriggersResponse struct {
6476
6477
6478 JobTriggers []*GooglePrivacyDlpV2JobTrigger `json:"jobTriggers,omitempty"`
6479
6480
6481 NextPageToken string `json:"nextPageToken,omitempty"`
6482
6483
6484 googleapi.ServerResponse `json:"-"`
6485
6486
6487
6488
6489
6490 ForceSendFields []string `json:"-"`
6491
6492
6493
6494
6495 NullFields []string `json:"-"`
6496 }
6497
6498 func (s *GooglePrivacyDlpV2ListJobTriggersResponse) MarshalJSON() ([]byte, error) {
6499 type NoMethod GooglePrivacyDlpV2ListJobTriggersResponse
6500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6501 }
6502
6503
6504
6505 type GooglePrivacyDlpV2ListProjectDataProfilesResponse struct {
6506
6507 NextPageToken string `json:"nextPageToken,omitempty"`
6508
6509 ProjectDataProfiles []*GooglePrivacyDlpV2ProjectDataProfile `json:"projectDataProfiles,omitempty"`
6510
6511
6512 googleapi.ServerResponse `json:"-"`
6513
6514
6515
6516
6517
6518 ForceSendFields []string `json:"-"`
6519
6520
6521
6522
6523 NullFields []string `json:"-"`
6524 }
6525
6526 func (s *GooglePrivacyDlpV2ListProjectDataProfilesResponse) MarshalJSON() ([]byte, error) {
6527 type NoMethod GooglePrivacyDlpV2ListProjectDataProfilesResponse
6528 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6529 }
6530
6531
6532
6533 type GooglePrivacyDlpV2ListStoredInfoTypesResponse struct {
6534
6535
6536 NextPageToken string `json:"nextPageToken,omitempty"`
6537
6538
6539 StoredInfoTypes []*GooglePrivacyDlpV2StoredInfoType `json:"storedInfoTypes,omitempty"`
6540
6541
6542 googleapi.ServerResponse `json:"-"`
6543
6544
6545
6546
6547
6548 ForceSendFields []string `json:"-"`
6549
6550
6551
6552
6553 NullFields []string `json:"-"`
6554 }
6555
6556 func (s *GooglePrivacyDlpV2ListStoredInfoTypesResponse) MarshalJSON() ([]byte, error) {
6557 type NoMethod GooglePrivacyDlpV2ListStoredInfoTypesResponse
6558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6559 }
6560
6561
6562
6563 type GooglePrivacyDlpV2ListTableDataProfilesResponse struct {
6564
6565 NextPageToken string `json:"nextPageToken,omitempty"`
6566
6567 TableDataProfiles []*GooglePrivacyDlpV2TableDataProfile `json:"tableDataProfiles,omitempty"`
6568
6569
6570 googleapi.ServerResponse `json:"-"`
6571
6572
6573
6574
6575
6576 ForceSendFields []string `json:"-"`
6577
6578
6579
6580
6581 NullFields []string `json:"-"`
6582 }
6583
6584 func (s *GooglePrivacyDlpV2ListTableDataProfilesResponse) MarshalJSON() ([]byte, error) {
6585 type NoMethod GooglePrivacyDlpV2ListTableDataProfilesResponse
6586 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6587 }
6588
6589
6590 type GooglePrivacyDlpV2Location struct {
6591
6592
6593
6594
6595 ByteRange *GooglePrivacyDlpV2Range `json:"byteRange,omitempty"`
6596
6597
6598
6599 CodepointRange *GooglePrivacyDlpV2Range `json:"codepointRange,omitempty"`
6600
6601
6602 Container *GooglePrivacyDlpV2Container `json:"container,omitempty"`
6603
6604
6605 ContentLocations []*GooglePrivacyDlpV2ContentLocation `json:"contentLocations,omitempty"`
6606
6607
6608
6609
6610
6611 ForceSendFields []string `json:"-"`
6612
6613
6614
6615
6616 NullFields []string `json:"-"`
6617 }
6618
6619 func (s *GooglePrivacyDlpV2Location) MarshalJSON() ([]byte, error) {
6620 type NoMethod GooglePrivacyDlpV2Location
6621 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6622 }
6623
6624
6625
6626 type GooglePrivacyDlpV2Manual struct {
6627 }
6628
6629
6630 type GooglePrivacyDlpV2MetadataLocation struct {
6631
6632 StorageLabel *GooglePrivacyDlpV2StorageMetadataLabel `json:"storageLabel,omitempty"`
6633
6634
6635
6636
6637
6638 Type string `json:"type,omitempty"`
6639
6640
6641
6642
6643
6644 ForceSendFields []string `json:"-"`
6645
6646
6647
6648
6649 NullFields []string `json:"-"`
6650 }
6651
6652 func (s *GooglePrivacyDlpV2MetadataLocation) MarshalJSON() ([]byte, error) {
6653 type NoMethod GooglePrivacyDlpV2MetadataLocation
6654 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6655 }
6656
6657
6658
6659 type GooglePrivacyDlpV2NumericalStatsConfig struct {
6660
6661
6662 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
6663
6664
6665
6666
6667
6668 ForceSendFields []string `json:"-"`
6669
6670
6671
6672
6673 NullFields []string `json:"-"`
6674 }
6675
6676 func (s *GooglePrivacyDlpV2NumericalStatsConfig) MarshalJSON() ([]byte, error) {
6677 type NoMethod GooglePrivacyDlpV2NumericalStatsConfig
6678 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6679 }
6680
6681
6682
6683 type GooglePrivacyDlpV2NumericalStatsResult struct {
6684
6685 MaxValue *GooglePrivacyDlpV2Value `json:"maxValue,omitempty"`
6686
6687 MinValue *GooglePrivacyDlpV2Value `json:"minValue,omitempty"`
6688
6689
6690 QuantileValues []*GooglePrivacyDlpV2Value `json:"quantileValues,omitempty"`
6691
6692
6693
6694
6695
6696 ForceSendFields []string `json:"-"`
6697
6698
6699
6700
6701 NullFields []string `json:"-"`
6702 }
6703
6704 func (s *GooglePrivacyDlpV2NumericalStatsResult) MarshalJSON() ([]byte, error) {
6705 type NoMethod GooglePrivacyDlpV2NumericalStatsResult
6706 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6707 }
6708
6709
6710
6711
6712 type GooglePrivacyDlpV2OrConditions struct {
6713
6714
6715 MinAge string `json:"minAge,omitempty"`
6716
6717
6718 MinRowCount int64 `json:"minRowCount,omitempty"`
6719
6720
6721
6722
6723
6724 ForceSendFields []string `json:"-"`
6725
6726
6727
6728
6729 NullFields []string `json:"-"`
6730 }
6731
6732 func (s *GooglePrivacyDlpV2OrConditions) MarshalJSON() ([]byte, error) {
6733 type NoMethod GooglePrivacyDlpV2OrConditions
6734 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6735 }
6736
6737
6738
6739 type GooglePrivacyDlpV2OrgConfig struct {
6740
6741 Location *GooglePrivacyDlpV2DiscoveryStartingLocation `json:"location,omitempty"`
6742
6743
6744
6745 ProjectId string `json:"projectId,omitempty"`
6746
6747
6748
6749
6750
6751 ForceSendFields []string `json:"-"`
6752
6753
6754
6755
6756 NullFields []string `json:"-"`
6757 }
6758
6759 func (s *GooglePrivacyDlpV2OrgConfig) MarshalJSON() ([]byte, error) {
6760 type NoMethod GooglePrivacyDlpV2OrgConfig
6761 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6762 }
6763
6764
6765
6766 type GooglePrivacyDlpV2OtherInfoTypeSummary struct {
6767
6768
6769 EstimatedPrevalence int64 `json:"estimatedPrevalence,omitempty"`
6770
6771
6772 ExcludedFromAnalysis bool `json:"excludedFromAnalysis,omitempty"`
6773
6774 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
6775
6776
6777
6778
6779
6780 ForceSendFields []string `json:"-"`
6781
6782
6783
6784
6785 NullFields []string `json:"-"`
6786 }
6787
6788 func (s *GooglePrivacyDlpV2OtherInfoTypeSummary) MarshalJSON() ([]byte, error) {
6789 type NoMethod GooglePrivacyDlpV2OtherInfoTypeSummary
6790 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6791 }
6792
6793
6794 type GooglePrivacyDlpV2OutputStorageConfig struct {
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814 OutputSchema string `json:"outputSchema,omitempty"`
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825 Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
6826
6827
6828
6829
6830
6831 ForceSendFields []string `json:"-"`
6832
6833
6834
6835
6836 NullFields []string `json:"-"`
6837 }
6838
6839 func (s *GooglePrivacyDlpV2OutputStorageConfig) MarshalJSON() ([]byte, error) {
6840 type NoMethod GooglePrivacyDlpV2OutputStorageConfig
6841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6842 }
6843
6844
6845
6846
6847
6848 type GooglePrivacyDlpV2PartitionId struct {
6849
6850
6851 NamespaceId string `json:"namespaceId,omitempty"`
6852
6853 ProjectId string `json:"projectId,omitempty"`
6854
6855
6856
6857
6858
6859 ForceSendFields []string `json:"-"`
6860
6861
6862
6863
6864 NullFields []string `json:"-"`
6865 }
6866
6867 func (s *GooglePrivacyDlpV2PartitionId) MarshalJSON() ([]byte, error) {
6868 type NoMethod GooglePrivacyDlpV2PartitionId
6869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6870 }
6871
6872
6873
6874
6875 type GooglePrivacyDlpV2PathElement struct {
6876
6877
6878 Id int64 `json:"id,omitempty,string"`
6879
6880
6881
6882 Kind string `json:"kind,omitempty"`
6883
6884
6885
6886 Name string `json:"name,omitempty"`
6887
6888
6889
6890
6891
6892 ForceSendFields []string `json:"-"`
6893
6894
6895
6896
6897 NullFields []string `json:"-"`
6898 }
6899
6900 func (s *GooglePrivacyDlpV2PathElement) MarshalJSON() ([]byte, error) {
6901 type NoMethod GooglePrivacyDlpV2PathElement
6902 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6903 }
6904
6905
6906 type GooglePrivacyDlpV2PrimitiveTransformation struct {
6907
6908 BucketingConfig *GooglePrivacyDlpV2BucketingConfig `json:"bucketingConfig,omitempty"`
6909
6910 CharacterMaskConfig *GooglePrivacyDlpV2CharacterMaskConfig `json:"characterMaskConfig,omitempty"`
6911
6912 CryptoDeterministicConfig *GooglePrivacyDlpV2CryptoDeterministicConfig `json:"cryptoDeterministicConfig,omitempty"`
6913
6914 CryptoHashConfig *GooglePrivacyDlpV2CryptoHashConfig `json:"cryptoHashConfig,omitempty"`
6915
6916 CryptoReplaceFfxFpeConfig *GooglePrivacyDlpV2CryptoReplaceFfxFpeConfig `json:"cryptoReplaceFfxFpeConfig,omitempty"`
6917
6918 DateShiftConfig *GooglePrivacyDlpV2DateShiftConfig `json:"dateShiftConfig,omitempty"`
6919
6920 FixedSizeBucketingConfig *GooglePrivacyDlpV2FixedSizeBucketingConfig `json:"fixedSizeBucketingConfig,omitempty"`
6921
6922 RedactConfig *GooglePrivacyDlpV2RedactConfig `json:"redactConfig,omitempty"`
6923
6924 ReplaceConfig *GooglePrivacyDlpV2ReplaceValueConfig `json:"replaceConfig,omitempty"`
6925
6926
6927 ReplaceDictionaryConfig *GooglePrivacyDlpV2ReplaceDictionaryConfig `json:"replaceDictionaryConfig,omitempty"`
6928
6929 ReplaceWithInfoTypeConfig *GooglePrivacyDlpV2ReplaceWithInfoTypeConfig `json:"replaceWithInfoTypeConfig,omitempty"`
6930
6931 TimePartConfig *GooglePrivacyDlpV2TimePartConfig `json:"timePartConfig,omitempty"`
6932
6933
6934
6935
6936
6937 ForceSendFields []string `json:"-"`
6938
6939
6940
6941
6942 NullFields []string `json:"-"`
6943 }
6944
6945 func (s *GooglePrivacyDlpV2PrimitiveTransformation) MarshalJSON() ([]byte, error) {
6946 type NoMethod GooglePrivacyDlpV2PrimitiveTransformation
6947 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6948 }
6949
6950
6951
6952 type GooglePrivacyDlpV2PrivacyMetric struct {
6953
6954 CategoricalStatsConfig *GooglePrivacyDlpV2CategoricalStatsConfig `json:"categoricalStatsConfig,omitempty"`
6955
6956 DeltaPresenceEstimationConfig *GooglePrivacyDlpV2DeltaPresenceEstimationConfig `json:"deltaPresenceEstimationConfig,omitempty"`
6957
6958 KAnonymityConfig *GooglePrivacyDlpV2KAnonymityConfig `json:"kAnonymityConfig,omitempty"`
6959
6960 KMapEstimationConfig *GooglePrivacyDlpV2KMapEstimationConfig `json:"kMapEstimationConfig,omitempty"`
6961
6962 LDiversityConfig *GooglePrivacyDlpV2LDiversityConfig `json:"lDiversityConfig,omitempty"`
6963
6964 NumericalStatsConfig *GooglePrivacyDlpV2NumericalStatsConfig `json:"numericalStatsConfig,omitempty"`
6965
6966
6967
6968
6969
6970 ForceSendFields []string `json:"-"`
6971
6972
6973
6974
6975 NullFields []string `json:"-"`
6976 }
6977
6978 func (s *GooglePrivacyDlpV2PrivacyMetric) MarshalJSON() ([]byte, error) {
6979 type NoMethod GooglePrivacyDlpV2PrivacyMetric
6980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6981 }
6982
6983
6984
6985 type GooglePrivacyDlpV2ProfileStatus struct {
6986
6987
6988 Status *GoogleRpcStatus `json:"status,omitempty"`
6989
6990 Timestamp string `json:"timestamp,omitempty"`
6991
6992
6993
6994
6995
6996 ForceSendFields []string `json:"-"`
6997
6998
6999
7000
7001 NullFields []string `json:"-"`
7002 }
7003
7004 func (s *GooglePrivacyDlpV2ProfileStatus) MarshalJSON() ([]byte, error) {
7005 type NoMethod GooglePrivacyDlpV2ProfileStatus
7006 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7007 }
7008
7009
7010
7011 type GooglePrivacyDlpV2ProjectDataProfile struct {
7012
7013 DataRiskLevel *GooglePrivacyDlpV2DataRiskLevel `json:"dataRiskLevel,omitempty"`
7014
7015 Name string `json:"name,omitempty"`
7016
7017 ProfileLastGenerated string `json:"profileLastGenerated,omitempty"`
7018
7019
7020 ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"`
7021
7022 ProjectId string `json:"projectId,omitempty"`
7023
7024 SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
7025
7026
7027 googleapi.ServerResponse `json:"-"`
7028
7029
7030
7031
7032
7033 ForceSendFields []string `json:"-"`
7034
7035
7036
7037
7038 NullFields []string `json:"-"`
7039 }
7040
7041 func (s *GooglePrivacyDlpV2ProjectDataProfile) MarshalJSON() ([]byte, error) {
7042 type NoMethod GooglePrivacyDlpV2ProjectDataProfile
7043 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7044 }
7045
7046
7047
7048 type GooglePrivacyDlpV2Proximity struct {
7049
7050 WindowAfter int64 `json:"windowAfter,omitempty"`
7051
7052
7053
7054
7055
7056 WindowBefore int64 `json:"windowBefore,omitempty"`
7057
7058
7059
7060
7061
7062 ForceSendFields []string `json:"-"`
7063
7064
7065
7066
7067 NullFields []string `json:"-"`
7068 }
7069
7070 func (s *GooglePrivacyDlpV2Proximity) MarshalJSON() ([]byte, error) {
7071 type NoMethod GooglePrivacyDlpV2Proximity
7072 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7073 }
7074
7075
7076 type GooglePrivacyDlpV2PubSubCondition struct {
7077
7078
7079
7080
7081
7082
7083 MinimumRiskScore string `json:"minimumRiskScore,omitempty"`
7084
7085
7086
7087
7088
7089
7090
7091 MinimumSensitivityScore string `json:"minimumSensitivityScore,omitempty"`
7092
7093
7094
7095
7096
7097 ForceSendFields []string `json:"-"`
7098
7099
7100
7101
7102 NullFields []string `json:"-"`
7103 }
7104
7105 func (s *GooglePrivacyDlpV2PubSubCondition) MarshalJSON() ([]byte, error) {
7106 type NoMethod GooglePrivacyDlpV2PubSubCondition
7107 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7108 }
7109
7110
7111
7112 type GooglePrivacyDlpV2PubSubExpressions struct {
7113
7114 Conditions []*GooglePrivacyDlpV2PubSubCondition `json:"conditions,omitempty"`
7115
7116
7117
7118
7119
7120
7121 LogicalOperator string `json:"logicalOperator,omitempty"`
7122
7123
7124
7125
7126
7127 ForceSendFields []string `json:"-"`
7128
7129
7130
7131
7132 NullFields []string `json:"-"`
7133 }
7134
7135 func (s *GooglePrivacyDlpV2PubSubExpressions) MarshalJSON() ([]byte, error) {
7136 type NoMethod GooglePrivacyDlpV2PubSubExpressions
7137 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7138 }
7139
7140
7141
7142
7143
7144 type GooglePrivacyDlpV2PubSubNotification struct {
7145
7146
7147
7148
7149
7150
7151
7152
7153 DetailOfMessage string `json:"detailOfMessage,omitempty"`
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165 Event string `json:"event,omitempty"`
7166
7167
7168 PubsubCondition *GooglePrivacyDlpV2DataProfilePubSubCondition `json:"pubsubCondition,omitempty"`
7169
7170
7171 Topic string `json:"topic,omitempty"`
7172
7173
7174
7175
7176
7177 ForceSendFields []string `json:"-"`
7178
7179
7180
7181
7182 NullFields []string `json:"-"`
7183 }
7184
7185 func (s *GooglePrivacyDlpV2PubSubNotification) MarshalJSON() ([]byte, error) {
7186 type NoMethod GooglePrivacyDlpV2PubSubNotification
7187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7188 }
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 type GooglePrivacyDlpV2PublishFindingsToCloudDataCatalog struct {
7205 }
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216 type GooglePrivacyDlpV2PublishSummaryToCscc struct {
7217 }
7218
7219
7220
7221
7222
7223
7224 type GooglePrivacyDlpV2PublishToPubSub struct {
7225
7226
7227
7228
7229 Topic string `json:"topic,omitempty"`
7230
7231
7232
7233
7234
7235 ForceSendFields []string `json:"-"`
7236
7237
7238
7239
7240 NullFields []string `json:"-"`
7241 }
7242
7243 func (s *GooglePrivacyDlpV2PublishToPubSub) MarshalJSON() ([]byte, error) {
7244 type NoMethod GooglePrivacyDlpV2PublishToPubSub
7245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7246 }
7247
7248
7249
7250
7251
7252
7253 type GooglePrivacyDlpV2PublishToStackdriver struct {
7254 }
7255
7256
7257 type GooglePrivacyDlpV2QuasiId struct {
7258
7259
7260
7261 CustomTag string `json:"customTag,omitempty"`
7262
7263 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
7264
7265
7266 Inferred *GoogleProtobufEmpty `json:"inferred,omitempty"`
7267
7268
7269
7270
7271
7272 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
7273
7274
7275
7276
7277
7278 ForceSendFields []string `json:"-"`
7279
7280
7281
7282
7283 NullFields []string `json:"-"`
7284 }
7285
7286 func (s *GooglePrivacyDlpV2QuasiId) MarshalJSON() ([]byte, error) {
7287 type NoMethod GooglePrivacyDlpV2QuasiId
7288 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7289 }
7290
7291
7292
7293
7294 type GooglePrivacyDlpV2QuasiIdField struct {
7295
7296 CustomTag string `json:"customTag,omitempty"`
7297
7298 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
7299
7300
7301
7302
7303
7304 ForceSendFields []string `json:"-"`
7305
7306
7307
7308
7309 NullFields []string `json:"-"`
7310 }
7311
7312 func (s *GooglePrivacyDlpV2QuasiIdField) MarshalJSON() ([]byte, error) {
7313 type NoMethod GooglePrivacyDlpV2QuasiIdField
7314 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7315 }
7316
7317
7318
7319
7320 type GooglePrivacyDlpV2QuasiIdentifierField struct {
7321
7322
7323
7324 CustomTag string `json:"customTag,omitempty"`
7325
7326 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
7327
7328
7329
7330
7331
7332 ForceSendFields []string `json:"-"`
7333
7334
7335
7336
7337 NullFields []string `json:"-"`
7338 }
7339
7340 func (s *GooglePrivacyDlpV2QuasiIdentifierField) MarshalJSON() ([]byte, error) {
7341 type NoMethod GooglePrivacyDlpV2QuasiIdentifierField
7342 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7343 }
7344
7345
7346
7347 type GooglePrivacyDlpV2QuoteInfo struct {
7348
7349 DateTime *GooglePrivacyDlpV2DateTime `json:"dateTime,omitempty"`
7350
7351
7352
7353
7354
7355 ForceSendFields []string `json:"-"`
7356
7357
7358
7359
7360 NullFields []string `json:"-"`
7361 }
7362
7363 func (s *GooglePrivacyDlpV2QuoteInfo) MarshalJSON() ([]byte, error) {
7364 type NoMethod GooglePrivacyDlpV2QuoteInfo
7365 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7366 }
7367
7368
7369 type GooglePrivacyDlpV2Range struct {
7370
7371 End int64 `json:"end,omitempty,string"`
7372
7373 Start int64 `json:"start,omitempty,string"`
7374
7375
7376
7377
7378
7379 ForceSendFields []string `json:"-"`
7380
7381
7382
7383
7384 NullFields []string `json:"-"`
7385 }
7386
7387 func (s *GooglePrivacyDlpV2Range) MarshalJSON() ([]byte, error) {
7388 type NoMethod GooglePrivacyDlpV2Range
7389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7390 }
7391
7392
7393
7394 type GooglePrivacyDlpV2RecordCondition struct {
7395
7396 Expressions *GooglePrivacyDlpV2Expressions `json:"expressions,omitempty"`
7397
7398
7399
7400
7401
7402 ForceSendFields []string `json:"-"`
7403
7404
7405
7406
7407 NullFields []string `json:"-"`
7408 }
7409
7410 func (s *GooglePrivacyDlpV2RecordCondition) MarshalJSON() ([]byte, error) {
7411 type NoMethod GooglePrivacyDlpV2RecordCondition
7412 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7413 }
7414
7415
7416
7417 type GooglePrivacyDlpV2RecordKey struct {
7418
7419 BigQueryKey *GooglePrivacyDlpV2BigQueryKey `json:"bigQueryKey,omitempty"`
7420
7421 DatastoreKey *GooglePrivacyDlpV2DatastoreKey `json:"datastoreKey,omitempty"`
7422
7423
7424 IdValues []string `json:"idValues,omitempty"`
7425
7426
7427
7428
7429
7430 ForceSendFields []string `json:"-"`
7431
7432
7433
7434
7435 NullFields []string `json:"-"`
7436 }
7437
7438 func (s *GooglePrivacyDlpV2RecordKey) MarshalJSON() ([]byte, error) {
7439 type NoMethod GooglePrivacyDlpV2RecordKey
7440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7441 }
7442
7443
7444
7445 type GooglePrivacyDlpV2RecordLocation struct {
7446
7447 FieldId *GooglePrivacyDlpV2FieldId `json:"fieldId,omitempty"`
7448
7449 RecordKey *GooglePrivacyDlpV2RecordKey `json:"recordKey,omitempty"`
7450
7451 TableLocation *GooglePrivacyDlpV2TableLocation `json:"tableLocation,omitempty"`
7452
7453
7454
7455
7456
7457 ForceSendFields []string `json:"-"`
7458
7459
7460
7461
7462 NullFields []string `json:"-"`
7463 }
7464
7465 func (s *GooglePrivacyDlpV2RecordLocation) MarshalJSON() ([]byte, error) {
7466 type NoMethod GooglePrivacyDlpV2RecordLocation
7467 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7468 }
7469
7470
7471
7472 type GooglePrivacyDlpV2RecordSuppression struct {
7473
7474
7475 Condition *GooglePrivacyDlpV2RecordCondition `json:"condition,omitempty"`
7476
7477
7478
7479
7480
7481 ForceSendFields []string `json:"-"`
7482
7483
7484
7485
7486 NullFields []string `json:"-"`
7487 }
7488
7489 func (s *GooglePrivacyDlpV2RecordSuppression) MarshalJSON() ([]byte, error) {
7490 type NoMethod GooglePrivacyDlpV2RecordSuppression
7491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7492 }
7493
7494
7495 type GooglePrivacyDlpV2RecordTransformation struct {
7496
7497
7498 ContainerTimestamp string `json:"containerTimestamp,omitempty"`
7499
7500
7501 ContainerVersion string `json:"containerVersion,omitempty"`
7502
7503 FieldId *GooglePrivacyDlpV2FieldId `json:"fieldId,omitempty"`
7504
7505
7506
7507
7508
7509 ForceSendFields []string `json:"-"`
7510
7511
7512
7513
7514 NullFields []string `json:"-"`
7515 }
7516
7517 func (s *GooglePrivacyDlpV2RecordTransformation) MarshalJSON() ([]byte, error) {
7518 type NoMethod GooglePrivacyDlpV2RecordTransformation
7519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7520 }
7521
7522
7523
7524 type GooglePrivacyDlpV2RecordTransformations struct {
7525
7526
7527 FieldTransformations []*GooglePrivacyDlpV2FieldTransformation `json:"fieldTransformations,omitempty"`
7528
7529
7530
7531 RecordSuppressions []*GooglePrivacyDlpV2RecordSuppression `json:"recordSuppressions,omitempty"`
7532
7533
7534
7535
7536
7537 ForceSendFields []string `json:"-"`
7538
7539
7540
7541
7542 NullFields []string `json:"-"`
7543 }
7544
7545 func (s *GooglePrivacyDlpV2RecordTransformations) MarshalJSON() ([]byte, error) {
7546 type NoMethod GooglePrivacyDlpV2RecordTransformations
7547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7548 }
7549
7550
7551
7552
7553 type GooglePrivacyDlpV2RedactConfig struct {
7554 }
7555
7556
7557
7558
7559 type GooglePrivacyDlpV2RedactImageRequest struct {
7560
7561 ByteItem *GooglePrivacyDlpV2ByteContentItem `json:"byteItem,omitempty"`
7562
7563
7564 ImageRedactionConfigs []*GooglePrivacyDlpV2ImageRedactionConfig `json:"imageRedactionConfigs,omitempty"`
7565
7566
7567 IncludeFindings bool `json:"includeFindings,omitempty"`
7568
7569 InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
7570
7571 LocationId string `json:"locationId,omitempty"`
7572
7573
7574
7575
7576
7577 ForceSendFields []string `json:"-"`
7578
7579
7580
7581
7582 NullFields []string `json:"-"`
7583 }
7584
7585 func (s *GooglePrivacyDlpV2RedactImageRequest) MarshalJSON() ([]byte, error) {
7586 type NoMethod GooglePrivacyDlpV2RedactImageRequest
7587 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7588 }
7589
7590
7591 type GooglePrivacyDlpV2RedactImageResponse struct {
7592
7593
7594
7595 ExtractedText string `json:"extractedText,omitempty"`
7596
7597
7598 InspectResult *GooglePrivacyDlpV2InspectResult `json:"inspectResult,omitempty"`
7599
7600
7601 RedactedImage string `json:"redactedImage,omitempty"`
7602
7603
7604 googleapi.ServerResponse `json:"-"`
7605
7606
7607
7608
7609
7610 ForceSendFields []string `json:"-"`
7611
7612
7613
7614
7615 NullFields []string `json:"-"`
7616 }
7617
7618 func (s *GooglePrivacyDlpV2RedactImageResponse) MarshalJSON() ([]byte, error) {
7619 type NoMethod GooglePrivacyDlpV2RedactImageResponse
7620 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7621 }
7622
7623
7624 type GooglePrivacyDlpV2Regex struct {
7625
7626
7627 GroupIndexes []int64 `json:"groupIndexes,omitempty"`
7628
7629
7630
7631 Pattern string `json:"pattern,omitempty"`
7632
7633
7634
7635
7636
7637 ForceSendFields []string `json:"-"`
7638
7639
7640
7641
7642 NullFields []string `json:"-"`
7643 }
7644
7645 func (s *GooglePrivacyDlpV2Regex) MarshalJSON() ([]byte, error) {
7646 type NoMethod GooglePrivacyDlpV2Regex
7647 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7648 }
7649
7650
7651 type GooglePrivacyDlpV2ReidentifyContentRequest struct {
7652
7653 InspectConfig *GooglePrivacyDlpV2InspectConfig `json:"inspectConfig,omitempty"`
7654
7655
7656
7657
7658
7659 InspectTemplateName string `json:"inspectTemplateName,omitempty"`
7660
7661 Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
7662
7663 LocationId string `json:"locationId,omitempty"`
7664
7665
7666
7667
7668
7669
7670
7671
7672 ReidentifyConfig *GooglePrivacyDlpV2DeidentifyConfig `json:"reidentifyConfig,omitempty"`
7673
7674
7675
7676
7677
7678
7679
7680 ReidentifyTemplateName string `json:"reidentifyTemplateName,omitempty"`
7681
7682
7683
7684
7685
7686 ForceSendFields []string `json:"-"`
7687
7688
7689
7690
7691 NullFields []string `json:"-"`
7692 }
7693
7694 func (s *GooglePrivacyDlpV2ReidentifyContentRequest) MarshalJSON() ([]byte, error) {
7695 type NoMethod GooglePrivacyDlpV2ReidentifyContentRequest
7696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7697 }
7698
7699
7700
7701 type GooglePrivacyDlpV2ReidentifyContentResponse struct {
7702
7703 Item *GooglePrivacyDlpV2ContentItem `json:"item,omitempty"`
7704
7705 Overview *GooglePrivacyDlpV2TransformationOverview `json:"overview,omitempty"`
7706
7707
7708 googleapi.ServerResponse `json:"-"`
7709
7710
7711
7712
7713
7714 ForceSendFields []string `json:"-"`
7715
7716
7717
7718
7719 NullFields []string `json:"-"`
7720 }
7721
7722 func (s *GooglePrivacyDlpV2ReidentifyContentResponse) MarshalJSON() ([]byte, error) {
7723 type NoMethod GooglePrivacyDlpV2ReidentifyContentResponse
7724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7725 }
7726
7727
7728
7729 type GooglePrivacyDlpV2ReplaceDictionaryConfig struct {
7730
7731
7732
7733 WordList *GooglePrivacyDlpV2WordList `json:"wordList,omitempty"`
7734
7735
7736
7737
7738
7739 ForceSendFields []string `json:"-"`
7740
7741
7742
7743
7744 NullFields []string `json:"-"`
7745 }
7746
7747 func (s *GooglePrivacyDlpV2ReplaceDictionaryConfig) MarshalJSON() ([]byte, error) {
7748 type NoMethod GooglePrivacyDlpV2ReplaceDictionaryConfig
7749 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7750 }
7751
7752
7753
7754 type GooglePrivacyDlpV2ReplaceValueConfig struct {
7755
7756 NewValue *GooglePrivacyDlpV2Value `json:"newValue,omitempty"`
7757
7758
7759
7760
7761
7762 ForceSendFields []string `json:"-"`
7763
7764
7765
7766
7767 NullFields []string `json:"-"`
7768 }
7769
7770 func (s *GooglePrivacyDlpV2ReplaceValueConfig) MarshalJSON() ([]byte, error) {
7771 type NoMethod GooglePrivacyDlpV2ReplaceValueConfig
7772 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7773 }
7774
7775
7776
7777 type GooglePrivacyDlpV2ReplaceWithInfoTypeConfig struct {
7778 }
7779
7780
7781 type GooglePrivacyDlpV2RequestedDeidentifyOptions struct {
7782
7783
7784
7785 SnapshotDeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotDeidentifyTemplate,omitempty"`
7786
7787
7788
7789 SnapshotImageRedactTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotImageRedactTemplate,omitempty"`
7790
7791
7792
7793 SnapshotStructuredDeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"snapshotStructuredDeidentifyTemplate,omitempty"`
7794
7795
7796
7797
7798
7799 ForceSendFields []string `json:"-"`
7800
7801
7802
7803
7804 NullFields []string `json:"-"`
7805 }
7806
7807 func (s *GooglePrivacyDlpV2RequestedDeidentifyOptions) MarshalJSON() ([]byte, error) {
7808 type NoMethod GooglePrivacyDlpV2RequestedDeidentifyOptions
7809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7810 }
7811
7812
7813
7814 type GooglePrivacyDlpV2RequestedOptions struct {
7815
7816 JobConfig *GooglePrivacyDlpV2InspectJobConfig `json:"jobConfig,omitempty"`
7817
7818
7819 SnapshotInspectTemplate *GooglePrivacyDlpV2InspectTemplate `json:"snapshotInspectTemplate,omitempty"`
7820
7821
7822
7823
7824
7825 ForceSendFields []string `json:"-"`
7826
7827
7828
7829
7830 NullFields []string `json:"-"`
7831 }
7832
7833 func (s *GooglePrivacyDlpV2RequestedOptions) MarshalJSON() ([]byte, error) {
7834 type NoMethod GooglePrivacyDlpV2RequestedOptions
7835 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7836 }
7837
7838
7839 type GooglePrivacyDlpV2RequestedRiskAnalysisOptions struct {
7840
7841 JobConfig *GooglePrivacyDlpV2RiskAnalysisJobConfig `json:"jobConfig,omitempty"`
7842
7843
7844
7845
7846
7847 ForceSendFields []string `json:"-"`
7848
7849
7850
7851
7852 NullFields []string `json:"-"`
7853 }
7854
7855 func (s *GooglePrivacyDlpV2RequestedRiskAnalysisOptions) MarshalJSON() ([]byte, error) {
7856 type NoMethod GooglePrivacyDlpV2RequestedRiskAnalysisOptions
7857 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7858 }
7859
7860
7861
7862 type GooglePrivacyDlpV2Result struct {
7863
7864 HybridStats *GooglePrivacyDlpV2HybridInspectStatistics `json:"hybridStats,omitempty"`
7865
7866
7867 InfoTypeStats []*GooglePrivacyDlpV2InfoTypeStats `json:"infoTypeStats,omitempty"`
7868
7869
7870 NumRowsProcessed int64 `json:"numRowsProcessed,omitempty,string"`
7871
7872 ProcessedBytes int64 `json:"processedBytes,omitempty,string"`
7873
7874 TotalEstimatedBytes int64 `json:"totalEstimatedBytes,omitempty,string"`
7875
7876
7877
7878
7879
7880 ForceSendFields []string `json:"-"`
7881
7882
7883
7884
7885 NullFields []string `json:"-"`
7886 }
7887
7888 func (s *GooglePrivacyDlpV2Result) MarshalJSON() ([]byte, error) {
7889 type NoMethod GooglePrivacyDlpV2Result
7890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7891 }
7892
7893
7894
7895
7896
7897 type GooglePrivacyDlpV2RiskAnalysisJobConfig struct {
7898
7899
7900 Actions []*GooglePrivacyDlpV2Action `json:"actions,omitempty"`
7901
7902 PrivacyMetric *GooglePrivacyDlpV2PrivacyMetric `json:"privacyMetric,omitempty"`
7903
7904 SourceTable *GooglePrivacyDlpV2BigQueryTable `json:"sourceTable,omitempty"`
7905
7906
7907
7908
7909
7910 ForceSendFields []string `json:"-"`
7911
7912
7913
7914
7915 NullFields []string `json:"-"`
7916 }
7917
7918 func (s *GooglePrivacyDlpV2RiskAnalysisJobConfig) MarshalJSON() ([]byte, error) {
7919 type NoMethod GooglePrivacyDlpV2RiskAnalysisJobConfig
7920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7921 }
7922
7923
7924 type GooglePrivacyDlpV2Row struct {
7925
7926 Values []*GooglePrivacyDlpV2Value `json:"values,omitempty"`
7927
7928
7929
7930
7931
7932 ForceSendFields []string `json:"-"`
7933
7934
7935
7936
7937 NullFields []string `json:"-"`
7938 }
7939
7940 func (s *GooglePrivacyDlpV2Row) MarshalJSON() ([]byte, error) {
7941 type NoMethod GooglePrivacyDlpV2Row
7942 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7943 }
7944
7945
7946
7947
7948 type GooglePrivacyDlpV2SaveFindings struct {
7949
7950 OutputConfig *GooglePrivacyDlpV2OutputStorageConfig `json:"outputConfig,omitempty"`
7951
7952
7953
7954
7955
7956 ForceSendFields []string `json:"-"`
7957
7958
7959
7960
7961 NullFields []string `json:"-"`
7962 }
7963
7964 func (s *GooglePrivacyDlpV2SaveFindings) MarshalJSON() ([]byte, error) {
7965 type NoMethod GooglePrivacyDlpV2SaveFindings
7966 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7967 }
7968
7969
7970 type GooglePrivacyDlpV2Schedule struct {
7971
7972
7973
7974
7975
7976 RecurrencePeriodDuration string `json:"recurrencePeriodDuration,omitempty"`
7977
7978
7979
7980
7981
7982 ForceSendFields []string `json:"-"`
7983
7984
7985
7986
7987 NullFields []string `json:"-"`
7988 }
7989
7990 func (s *GooglePrivacyDlpV2Schedule) MarshalJSON() ([]byte, error) {
7991 type NoMethod GooglePrivacyDlpV2Schedule
7992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7993 }
7994
7995
7996
7997 type GooglePrivacyDlpV2SchemaModifiedCadence struct {
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009 Frequency string `json:"frequency,omitempty"`
8010
8011
8012
8013
8014
8015
8016
8017 Types []string `json:"types,omitempty"`
8018
8019
8020
8021
8022
8023 ForceSendFields []string `json:"-"`
8024
8025
8026
8027
8028 NullFields []string `json:"-"`
8029 }
8030
8031 func (s *GooglePrivacyDlpV2SchemaModifiedCadence) MarshalJSON() ([]byte, error) {
8032 type NoMethod GooglePrivacyDlpV2SchemaModifiedCadence
8033 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8034 }
8035
8036
8037
8038 type GooglePrivacyDlpV2SearchConnectionsResponse struct {
8039
8040
8041
8042 Connections []*GooglePrivacyDlpV2Connection `json:"connections,omitempty"`
8043
8044
8045 NextPageToken string `json:"nextPageToken,omitempty"`
8046
8047
8048 googleapi.ServerResponse `json:"-"`
8049
8050
8051
8052
8053
8054 ForceSendFields []string `json:"-"`
8055
8056
8057
8058
8059 NullFields []string `json:"-"`
8060 }
8061
8062 func (s *GooglePrivacyDlpV2SearchConnectionsResponse) MarshalJSON() ([]byte, error) {
8063 type NoMethod GooglePrivacyDlpV2SearchConnectionsResponse
8064 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8065 }
8066
8067
8068
8069
8070
8071 type GooglePrivacyDlpV2SecretManagerCredential struct {
8072
8073
8074
8075 PasswordSecretVersionName string `json:"passwordSecretVersionName,omitempty"`
8076
8077 Username string `json:"username,omitempty"`
8078
8079
8080
8081
8082
8083 ForceSendFields []string `json:"-"`
8084
8085
8086
8087
8088 NullFields []string `json:"-"`
8089 }
8090
8091 func (s *GooglePrivacyDlpV2SecretManagerCredential) MarshalJSON() ([]byte, error) {
8092 type NoMethod GooglePrivacyDlpV2SecretManagerCredential
8093 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8094 }
8095
8096
8097
8098 type GooglePrivacyDlpV2SelectedInfoTypes struct {
8099
8100
8101 InfoTypes []*GooglePrivacyDlpV2InfoType `json:"infoTypes,omitempty"`
8102
8103
8104
8105
8106
8107 ForceSendFields []string `json:"-"`
8108
8109
8110
8111
8112 NullFields []string `json:"-"`
8113 }
8114
8115 func (s *GooglePrivacyDlpV2SelectedInfoTypes) MarshalJSON() ([]byte, error) {
8116 type NoMethod GooglePrivacyDlpV2SelectedInfoTypes
8117 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8118 }
8119
8120
8121
8122 type GooglePrivacyDlpV2SensitivityScore struct {
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 Score string `json:"score,omitempty"`
8138
8139
8140
8141
8142
8143 ForceSendFields []string `json:"-"`
8144
8145
8146
8147
8148 NullFields []string `json:"-"`
8149 }
8150
8151 func (s *GooglePrivacyDlpV2SensitivityScore) MarshalJSON() ([]byte, error) {
8152 type NoMethod GooglePrivacyDlpV2SensitivityScore
8153 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8154 }
8155
8156
8157
8158
8159
8160
8161
8162
8163 type GooglePrivacyDlpV2StatisticalTable struct {
8164
8165 QuasiIds []*GooglePrivacyDlpV2QuasiIdentifierField `json:"quasiIds,omitempty"`
8166
8167
8168
8169 RelativeFrequency *GooglePrivacyDlpV2FieldId `json:"relativeFrequency,omitempty"`
8170
8171 Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
8172
8173
8174
8175
8176
8177 ForceSendFields []string `json:"-"`
8178
8179
8180
8181
8182 NullFields []string `json:"-"`
8183 }
8184
8185 func (s *GooglePrivacyDlpV2StatisticalTable) MarshalJSON() ([]byte, error) {
8186 type NoMethod GooglePrivacyDlpV2StatisticalTable
8187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8188 }
8189
8190
8191
8192 type GooglePrivacyDlpV2StorageConfig struct {
8193
8194 BigQueryOptions *GooglePrivacyDlpV2BigQueryOptions `json:"bigQueryOptions,omitempty"`
8195
8196 CloudStorageOptions *GooglePrivacyDlpV2CloudStorageOptions `json:"cloudStorageOptions,omitempty"`
8197
8198 DatastoreOptions *GooglePrivacyDlpV2DatastoreOptions `json:"datastoreOptions,omitempty"`
8199
8200 HybridOptions *GooglePrivacyDlpV2HybridOptions `json:"hybridOptions,omitempty"`
8201
8202
8203 TimespanConfig *GooglePrivacyDlpV2TimespanConfig `json:"timespanConfig,omitempty"`
8204
8205
8206
8207
8208
8209 ForceSendFields []string `json:"-"`
8210
8211
8212
8213
8214 NullFields []string `json:"-"`
8215 }
8216
8217 func (s *GooglePrivacyDlpV2StorageConfig) MarshalJSON() ([]byte, error) {
8218 type NoMethod GooglePrivacyDlpV2StorageConfig
8219 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8220 }
8221
8222
8223
8224 type GooglePrivacyDlpV2StorageMetadataLabel struct {
8225
8226 Key string `json:"key,omitempty"`
8227
8228
8229
8230
8231
8232 ForceSendFields []string `json:"-"`
8233
8234
8235
8236
8237 NullFields []string `json:"-"`
8238 }
8239
8240 func (s *GooglePrivacyDlpV2StorageMetadataLabel) MarshalJSON() ([]byte, error) {
8241 type NoMethod GooglePrivacyDlpV2StorageMetadataLabel
8242 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8243 }
8244
8245
8246
8247 type GooglePrivacyDlpV2StoredInfoType struct {
8248
8249 CurrentVersion *GooglePrivacyDlpV2StoredInfoTypeVersion `json:"currentVersion,omitempty"`
8250
8251 Name string `json:"name,omitempty"`
8252
8253
8254 PendingVersions []*GooglePrivacyDlpV2StoredInfoTypeVersion `json:"pendingVersions,omitempty"`
8255
8256
8257 googleapi.ServerResponse `json:"-"`
8258
8259
8260
8261
8262
8263 ForceSendFields []string `json:"-"`
8264
8265
8266
8267
8268 NullFields []string `json:"-"`
8269 }
8270
8271 func (s *GooglePrivacyDlpV2StoredInfoType) MarshalJSON() ([]byte, error) {
8272 type NoMethod GooglePrivacyDlpV2StoredInfoType
8273 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8274 }
8275
8276
8277
8278
8279 type GooglePrivacyDlpV2StoredInfoTypeConfig struct {
8280
8281 Description string `json:"description,omitempty"`
8282
8283 Dictionary *GooglePrivacyDlpV2Dictionary `json:"dictionary,omitempty"`
8284
8285 DisplayName string `json:"displayName,omitempty"`
8286
8287
8288 LargeCustomDictionary *GooglePrivacyDlpV2LargeCustomDictionaryConfig `json:"largeCustomDictionary,omitempty"`
8289
8290 Regex *GooglePrivacyDlpV2Regex `json:"regex,omitempty"`
8291
8292
8293
8294
8295
8296 ForceSendFields []string `json:"-"`
8297
8298
8299
8300
8301 NullFields []string `json:"-"`
8302 }
8303
8304 func (s *GooglePrivacyDlpV2StoredInfoTypeConfig) MarshalJSON() ([]byte, error) {
8305 type NoMethod GooglePrivacyDlpV2StoredInfoTypeConfig
8306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8307 }
8308
8309
8310 type GooglePrivacyDlpV2StoredInfoTypeStats struct {
8311
8312
8313 LargeCustomDictionary *GooglePrivacyDlpV2LargeCustomDictionaryStats `json:"largeCustomDictionary,omitempty"`
8314
8315
8316
8317
8318
8319 ForceSendFields []string `json:"-"`
8320
8321
8322
8323
8324 NullFields []string `json:"-"`
8325 }
8326
8327 func (s *GooglePrivacyDlpV2StoredInfoTypeStats) MarshalJSON() ([]byte, error) {
8328 type NoMethod GooglePrivacyDlpV2StoredInfoTypeStats
8329 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8330 }
8331
8332
8333
8334
8335 type GooglePrivacyDlpV2StoredInfoTypeVersion struct {
8336
8337 Config *GooglePrivacyDlpV2StoredInfoTypeConfig `json:"config,omitempty"`
8338
8339
8340 CreateTime string `json:"createTime,omitempty"`
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351 Errors []*GooglePrivacyDlpV2Error `json:"errors,omitempty"`
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 State string `json:"state,omitempty"`
8365
8366 Stats *GooglePrivacyDlpV2StoredInfoTypeStats `json:"stats,omitempty"`
8367
8368
8369
8370
8371
8372 ForceSendFields []string `json:"-"`
8373
8374
8375
8376
8377 NullFields []string `json:"-"`
8378 }
8379
8380 func (s *GooglePrivacyDlpV2StoredInfoTypeVersion) MarshalJSON() ([]byte, error) {
8381 type NoMethod GooglePrivacyDlpV2StoredInfoTypeVersion
8382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8383 }
8384
8385
8386
8387 type GooglePrivacyDlpV2StoredType struct {
8388
8389
8390 CreateTime string `json:"createTime,omitempty"`
8391
8392
8393
8394 Name string `json:"name,omitempty"`
8395
8396
8397
8398
8399
8400 ForceSendFields []string `json:"-"`
8401
8402
8403
8404
8405 NullFields []string `json:"-"`
8406 }
8407
8408 func (s *GooglePrivacyDlpV2StoredType) MarshalJSON() ([]byte, error) {
8409 type NoMethod GooglePrivacyDlpV2StoredType
8410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8411 }
8412
8413
8414
8415
8416 type GooglePrivacyDlpV2SummaryResult struct {
8417
8418
8419
8420
8421
8422
8423 Code string `json:"code,omitempty"`
8424
8425 Count int64 `json:"count,omitempty,string"`
8426
8427
8428 Details string `json:"details,omitempty"`
8429
8430
8431
8432
8433
8434 ForceSendFields []string `json:"-"`
8435
8436
8437
8438
8439 NullFields []string `json:"-"`
8440 }
8441
8442 func (s *GooglePrivacyDlpV2SummaryResult) MarshalJSON() ([]byte, error) {
8443 type NoMethod GooglePrivacyDlpV2SummaryResult
8444 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8445 }
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455 type GooglePrivacyDlpV2SurrogateType struct {
8456 }
8457
8458
8459
8460
8461
8462 type GooglePrivacyDlpV2Table struct {
8463
8464 Headers []*GooglePrivacyDlpV2FieldId `json:"headers,omitempty"`
8465
8466 Rows []*GooglePrivacyDlpV2Row `json:"rows,omitempty"`
8467
8468
8469
8470
8471
8472 ForceSendFields []string `json:"-"`
8473
8474
8475
8476
8477 NullFields []string `json:"-"`
8478 }
8479
8480 func (s *GooglePrivacyDlpV2Table) MarshalJSON() ([]byte, error) {
8481 type NoMethod GooglePrivacyDlpV2Table
8482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8483 }
8484
8485
8486 type GooglePrivacyDlpV2TableDataProfile struct {
8487
8488
8489 ConfigSnapshot *GooglePrivacyDlpV2DataProfileConfigSnapshot `json:"configSnapshot,omitempty"`
8490
8491 CreateTime string `json:"createTime,omitempty"`
8492
8493 DataRiskLevel *GooglePrivacyDlpV2DataRiskLevel `json:"dataRiskLevel,omitempty"`
8494
8495 DataSourceType *GooglePrivacyDlpV2DataSourceType `json:"dataSourceType,omitempty"`
8496
8497 DatasetId string `json:"datasetId,omitempty"`
8498
8499
8500
8501 DatasetLocation string `json:"datasetLocation,omitempty"`
8502
8503 DatasetProjectId string `json:"datasetProjectId,omitempty"`
8504
8505
8506
8507
8508
8509
8510
8511 EncryptionStatus string `json:"encryptionStatus,omitempty"`
8512
8513 ExpirationTime string `json:"expirationTime,omitempty"`
8514
8515
8516 FailedColumnCount int64 `json:"failedColumnCount,omitempty,string"`
8517
8518
8519 FullResource string `json:"fullResource,omitempty"`
8520
8521 LastModifiedTime string `json:"lastModifiedTime,omitempty"`
8522
8523 Name string `json:"name,omitempty"`
8524
8525 OtherInfoTypes []*GooglePrivacyDlpV2OtherInfoTypeSummary `json:"otherInfoTypes,omitempty"`
8526
8527 PredictedInfoTypes []*GooglePrivacyDlpV2InfoTypeSummary `json:"predictedInfoTypes,omitempty"`
8528
8529 ProfileLastGenerated string `json:"profileLastGenerated,omitempty"`
8530
8531
8532 ProfileStatus *GooglePrivacyDlpV2ProfileStatus `json:"profileStatus,omitempty"`
8533
8534
8535 ProjectDataProfile string `json:"projectDataProfile,omitempty"`
8536
8537
8538 ResourceLabels map[string]string `json:"resourceLabels,omitempty"`
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 ResourceVisibility string `json:"resourceVisibility,omitempty"`
8549
8550
8551 RowCount int64 `json:"rowCount,omitempty,string"`
8552
8553 ScannedColumnCount int64 `json:"scannedColumnCount,omitempty,string"`
8554
8555 SensitivityScore *GooglePrivacyDlpV2SensitivityScore `json:"sensitivityScore,omitempty"`
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565 State string `json:"state,omitempty"`
8566
8567 TableId string `json:"tableId,omitempty"`
8568
8569 TableSizeBytes int64 `json:"tableSizeBytes,omitempty,string"`
8570
8571
8572 googleapi.ServerResponse `json:"-"`
8573
8574
8575
8576
8577
8578 ForceSendFields []string `json:"-"`
8579
8580
8581
8582
8583 NullFields []string `json:"-"`
8584 }
8585
8586 func (s *GooglePrivacyDlpV2TableDataProfile) MarshalJSON() ([]byte, error) {
8587 type NoMethod GooglePrivacyDlpV2TableDataProfile
8588 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8589 }
8590
8591
8592 type GooglePrivacyDlpV2TableLocation struct {
8593
8594
8595
8596
8597
8598
8599 RowIndex int64 `json:"rowIndex,omitempty,string"`
8600
8601
8602
8603
8604
8605 ForceSendFields []string `json:"-"`
8606
8607
8608
8609
8610 NullFields []string `json:"-"`
8611 }
8612
8613 func (s *GooglePrivacyDlpV2TableLocation) MarshalJSON() ([]byte, error) {
8614 type NoMethod GooglePrivacyDlpV2TableLocation
8615 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8616 }
8617
8618
8619
8620 type GooglePrivacyDlpV2TableOptions struct {
8621
8622
8623
8624
8625 IdentifyingFields []*GooglePrivacyDlpV2FieldId `json:"identifyingFields,omitempty"`
8626
8627
8628
8629
8630
8631 ForceSendFields []string `json:"-"`
8632
8633
8634
8635
8636 NullFields []string `json:"-"`
8637 }
8638
8639 func (s *GooglePrivacyDlpV2TableOptions) MarshalJSON() ([]byte, error) {
8640 type NoMethod GooglePrivacyDlpV2TableOptions
8641 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8642 }
8643
8644
8645 type GooglePrivacyDlpV2TaggedField struct {
8646
8647
8648
8649 CustomTag string `json:"customTag,omitempty"`
8650
8651 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
8652
8653
8654 Inferred *GoogleProtobufEmpty `json:"inferred,omitempty"`
8655
8656
8657
8658
8659
8660 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
8661
8662
8663
8664
8665
8666 ForceSendFields []string `json:"-"`
8667
8668
8669
8670
8671 NullFields []string `json:"-"`
8672 }
8673
8674 func (s *GooglePrivacyDlpV2TaggedField) MarshalJSON() ([]byte, error) {
8675 type NoMethod GooglePrivacyDlpV2TaggedField
8676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8677 }
8678
8679
8680
8681 type GooglePrivacyDlpV2ThrowError struct {
8682 }
8683
8684
8685
8686 type GooglePrivacyDlpV2TimePartConfig struct {
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697 PartToExtract string `json:"partToExtract,omitempty"`
8698
8699
8700
8701
8702
8703 ForceSendFields []string `json:"-"`
8704
8705
8706
8707
8708 NullFields []string `json:"-"`
8709 }
8710
8711 func (s *GooglePrivacyDlpV2TimePartConfig) MarshalJSON() ([]byte, error) {
8712 type NoMethod GooglePrivacyDlpV2TimePartConfig
8713 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8714 }
8715
8716
8717 type GooglePrivacyDlpV2TimeZone struct {
8718
8719
8720 OffsetMinutes int64 `json:"offsetMinutes,omitempty"`
8721
8722
8723
8724
8725
8726 ForceSendFields []string `json:"-"`
8727
8728
8729
8730
8731 NullFields []string `json:"-"`
8732 }
8733
8734 func (s *GooglePrivacyDlpV2TimeZone) MarshalJSON() ([]byte, error) {
8735 type NoMethod GooglePrivacyDlpV2TimeZone
8736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8737 }
8738
8739
8740
8741
8742 type GooglePrivacyDlpV2TimespanConfig struct {
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755 EnableAutoPopulationOfTimespanConfig bool `json:"enableAutoPopulationOfTimespanConfig,omitempty"`
8756
8757
8758 EndTime string `json:"endTime,omitempty"`
8759
8760
8761 StartTime string `json:"startTime,omitempty"`
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781 TimestampField *GooglePrivacyDlpV2FieldId `json:"timestampField,omitempty"`
8782
8783
8784
8785
8786
8787
8788 ForceSendFields []string `json:"-"`
8789
8790
8791
8792
8793
8794 NullFields []string `json:"-"`
8795 }
8796
8797 func (s *GooglePrivacyDlpV2TimespanConfig) MarshalJSON() ([]byte, error) {
8798 type NoMethod GooglePrivacyDlpV2TimespanConfig
8799 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8800 }
8801
8802
8803
8804
8805
8806 type GooglePrivacyDlpV2TransformationConfig struct {
8807
8808
8809
8810
8811
8812
8813 DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"`
8814
8815
8816
8817 ImageRedactTemplate string `json:"imageRedactTemplate,omitempty"`
8818
8819
8820
8821
8822
8823
8824
8825 StructuredDeidentifyTemplate string `json:"structuredDeidentifyTemplate,omitempty"`
8826
8827
8828
8829
8830
8831 ForceSendFields []string `json:"-"`
8832
8833
8834
8835
8836 NullFields []string `json:"-"`
8837 }
8838
8839 func (s *GooglePrivacyDlpV2TransformationConfig) MarshalJSON() ([]byte, error) {
8840 type NoMethod GooglePrivacyDlpV2TransformationConfig
8841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8842 }
8843
8844
8845
8846 type GooglePrivacyDlpV2TransformationDescription struct {
8847
8848
8849
8850
8851
8852
8853 Condition string `json:"condition,omitempty"`
8854
8855
8856
8857
8858 Description string `json:"description,omitempty"`
8859
8860 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879 Type string `json:"type,omitempty"`
8880
8881
8882
8883
8884
8885 ForceSendFields []string `json:"-"`
8886
8887
8888
8889
8890 NullFields []string `json:"-"`
8891 }
8892
8893 func (s *GooglePrivacyDlpV2TransformationDescription) MarshalJSON() ([]byte, error) {
8894 type NoMethod GooglePrivacyDlpV2TransformationDescription
8895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8896 }
8897
8898
8899
8900
8901
8902
8903 type GooglePrivacyDlpV2TransformationDetails struct {
8904
8905
8906 ContainerName string `json:"containerName,omitempty"`
8907
8908 ResourceName string `json:"resourceName,omitempty"`
8909
8910
8911
8912 StatusDetails *GooglePrivacyDlpV2TransformationResultStatus `json:"statusDetails,omitempty"`
8913
8914
8915
8916
8917
8918 Transformation []*GooglePrivacyDlpV2TransformationDescription `json:"transformation,omitempty"`
8919
8920
8921 TransformationLocation *GooglePrivacyDlpV2TransformationLocation `json:"transformationLocation,omitempty"`
8922
8923
8924
8925 TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
8926
8927
8928
8929
8930
8931 ForceSendFields []string `json:"-"`
8932
8933
8934
8935
8936 NullFields []string `json:"-"`
8937 }
8938
8939 func (s *GooglePrivacyDlpV2TransformationDetails) MarshalJSON() ([]byte, error) {
8940 type NoMethod GooglePrivacyDlpV2TransformationDetails
8941 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8942 }
8943
8944
8945
8946 type GooglePrivacyDlpV2TransformationDetailsStorageConfig struct {
8947
8948
8949
8950
8951
8952 Table *GooglePrivacyDlpV2BigQueryTable `json:"table,omitempty"`
8953
8954
8955
8956
8957
8958 ForceSendFields []string `json:"-"`
8959
8960
8961
8962
8963 NullFields []string `json:"-"`
8964 }
8965
8966 func (s *GooglePrivacyDlpV2TransformationDetailsStorageConfig) MarshalJSON() ([]byte, error) {
8967 type NoMethod GooglePrivacyDlpV2TransformationDetailsStorageConfig
8968 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8969 }
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979 type GooglePrivacyDlpV2TransformationErrorHandling struct {
8980
8981 LeaveUntransformed *GooglePrivacyDlpV2LeaveUntransformed `json:"leaveUntransformed,omitempty"`
8982
8983 ThrowError *GooglePrivacyDlpV2ThrowError `json:"throwError,omitempty"`
8984
8985
8986
8987
8988
8989 ForceSendFields []string `json:"-"`
8990
8991
8992
8993
8994 NullFields []string `json:"-"`
8995 }
8996
8997 func (s *GooglePrivacyDlpV2TransformationErrorHandling) MarshalJSON() ([]byte, error) {
8998 type NoMethod GooglePrivacyDlpV2TransformationErrorHandling
8999 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9000 }
9001
9002
9003
9004 type GooglePrivacyDlpV2TransformationLocation struct {
9005
9006
9007
9008
9009
9010
9011
9012
9013 ContainerType string `json:"containerType,omitempty"`
9014
9015
9016
9017
9018
9019 FindingId string `json:"findingId,omitempty"`
9020
9021
9022 RecordTransformation *GooglePrivacyDlpV2RecordTransformation `json:"recordTransformation,omitempty"`
9023
9024
9025
9026
9027
9028 ForceSendFields []string `json:"-"`
9029
9030
9031
9032
9033 NullFields []string `json:"-"`
9034 }
9035
9036 func (s *GooglePrivacyDlpV2TransformationLocation) MarshalJSON() ([]byte, error) {
9037 type NoMethod GooglePrivacyDlpV2TransformationLocation
9038 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9039 }
9040
9041
9042
9043 type GooglePrivacyDlpV2TransformationOverview struct {
9044
9045 TransformationSummaries []*GooglePrivacyDlpV2TransformationSummary `json:"transformationSummaries,omitempty"`
9046
9047 TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
9048
9049
9050
9051
9052
9053 ForceSendFields []string `json:"-"`
9054
9055
9056
9057
9058 NullFields []string `json:"-"`
9059 }
9060
9061 func (s *GooglePrivacyDlpV2TransformationOverview) MarshalJSON() ([]byte, error) {
9062 type NoMethod GooglePrivacyDlpV2TransformationOverview
9063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9064 }
9065
9066
9067
9068 type GooglePrivacyDlpV2TransformationResultStatus struct {
9069
9070 Details *GoogleRpcStatus `json:"details,omitempty"`
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087 ResultStatusType string `json:"resultStatusType,omitempty"`
9088
9089
9090
9091
9092
9093 ForceSendFields []string `json:"-"`
9094
9095
9096
9097
9098 NullFields []string `json:"-"`
9099 }
9100
9101 func (s *GooglePrivacyDlpV2TransformationResultStatus) MarshalJSON() ([]byte, error) {
9102 type NoMethod GooglePrivacyDlpV2TransformationResultStatus
9103 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9104 }
9105
9106
9107
9108
9109 type GooglePrivacyDlpV2TransformationSummary struct {
9110
9111 Field *GooglePrivacyDlpV2FieldId `json:"field,omitempty"`
9112
9113
9114
9115 FieldTransformations []*GooglePrivacyDlpV2FieldTransformation `json:"fieldTransformations,omitempty"`
9116
9117 InfoType *GooglePrivacyDlpV2InfoType `json:"infoType,omitempty"`
9118
9119 RecordSuppress *GooglePrivacyDlpV2RecordSuppression `json:"recordSuppress,omitempty"`
9120
9121 Results []*GooglePrivacyDlpV2SummaryResult `json:"results,omitempty"`
9122
9123 Transformation *GooglePrivacyDlpV2PrimitiveTransformation `json:"transformation,omitempty"`
9124
9125 TransformedBytes int64 `json:"transformedBytes,omitempty,string"`
9126
9127
9128
9129
9130
9131 ForceSendFields []string `json:"-"`
9132
9133
9134
9135
9136 NullFields []string `json:"-"`
9137 }
9138
9139 func (s *GooglePrivacyDlpV2TransformationSummary) MarshalJSON() ([]byte, error) {
9140 type NoMethod GooglePrivacyDlpV2TransformationSummary
9141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9142 }
9143
9144
9145
9146 type GooglePrivacyDlpV2TransientCryptoKey struct {
9147
9148
9149
9150
9151
9152
9153 Name string `json:"name,omitempty"`
9154
9155
9156
9157
9158
9159 ForceSendFields []string `json:"-"`
9160
9161
9162
9163
9164 NullFields []string `json:"-"`
9165 }
9166
9167 func (s *GooglePrivacyDlpV2TransientCryptoKey) MarshalJSON() ([]byte, error) {
9168 type NoMethod GooglePrivacyDlpV2TransientCryptoKey
9169 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9170 }
9171
9172
9173
9174 type GooglePrivacyDlpV2Trigger struct {
9175
9176
9177 Manual *GooglePrivacyDlpV2Manual `json:"manual,omitempty"`
9178
9179 Schedule *GooglePrivacyDlpV2Schedule `json:"schedule,omitempty"`
9180
9181
9182
9183
9184
9185 ForceSendFields []string `json:"-"`
9186
9187
9188
9189
9190 NullFields []string `json:"-"`
9191 }
9192
9193 func (s *GooglePrivacyDlpV2Trigger) MarshalJSON() ([]byte, error) {
9194 type NoMethod GooglePrivacyDlpV2Trigger
9195 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9196 }
9197
9198
9199
9200
9201 type GooglePrivacyDlpV2UnwrappedCryptoKey struct {
9202
9203 Key string `json:"key,omitempty"`
9204
9205
9206
9207
9208
9209 ForceSendFields []string `json:"-"`
9210
9211
9212
9213
9214 NullFields []string `json:"-"`
9215 }
9216
9217 func (s *GooglePrivacyDlpV2UnwrappedCryptoKey) MarshalJSON() ([]byte, error) {
9218 type NoMethod GooglePrivacyDlpV2UnwrappedCryptoKey
9219 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9220 }
9221
9222
9223
9224 type GooglePrivacyDlpV2UpdateConnectionRequest struct {
9225
9226
9227 Connection *GooglePrivacyDlpV2Connection `json:"connection,omitempty"`
9228
9229 UpdateMask string `json:"updateMask,omitempty"`
9230
9231
9232
9233
9234
9235 ForceSendFields []string `json:"-"`
9236
9237
9238
9239
9240 NullFields []string `json:"-"`
9241 }
9242
9243 func (s *GooglePrivacyDlpV2UpdateConnectionRequest) MarshalJSON() ([]byte, error) {
9244 type NoMethod GooglePrivacyDlpV2UpdateConnectionRequest
9245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9246 }
9247
9248
9249
9250 type GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest struct {
9251
9252 DeidentifyTemplate *GooglePrivacyDlpV2DeidentifyTemplate `json:"deidentifyTemplate,omitempty"`
9253
9254 UpdateMask string `json:"updateMask,omitempty"`
9255
9256
9257
9258
9259
9260 ForceSendFields []string `json:"-"`
9261
9262
9263
9264
9265 NullFields []string `json:"-"`
9266 }
9267
9268 func (s *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) MarshalJSON() ([]byte, error) {
9269 type NoMethod GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
9270 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9271 }
9272
9273
9274
9275 type GooglePrivacyDlpV2UpdateDiscoveryConfigRequest struct {
9276
9277 DiscoveryConfig *GooglePrivacyDlpV2DiscoveryConfig `json:"discoveryConfig,omitempty"`
9278
9279 UpdateMask string `json:"updateMask,omitempty"`
9280
9281
9282
9283
9284
9285 ForceSendFields []string `json:"-"`
9286
9287
9288
9289
9290 NullFields []string `json:"-"`
9291 }
9292
9293 func (s *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest) MarshalJSON() ([]byte, error) {
9294 type NoMethod GooglePrivacyDlpV2UpdateDiscoveryConfigRequest
9295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9296 }
9297
9298
9299
9300 type GooglePrivacyDlpV2UpdateInspectTemplateRequest struct {
9301
9302 InspectTemplate *GooglePrivacyDlpV2InspectTemplate `json:"inspectTemplate,omitempty"`
9303
9304 UpdateMask string `json:"updateMask,omitempty"`
9305
9306
9307
9308
9309
9310 ForceSendFields []string `json:"-"`
9311
9312
9313
9314
9315 NullFields []string `json:"-"`
9316 }
9317
9318 func (s *GooglePrivacyDlpV2UpdateInspectTemplateRequest) MarshalJSON() ([]byte, error) {
9319 type NoMethod GooglePrivacyDlpV2UpdateInspectTemplateRequest
9320 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9321 }
9322
9323
9324
9325 type GooglePrivacyDlpV2UpdateJobTriggerRequest struct {
9326
9327 JobTrigger *GooglePrivacyDlpV2JobTrigger `json:"jobTrigger,omitempty"`
9328
9329 UpdateMask string `json:"updateMask,omitempty"`
9330
9331
9332
9333
9334
9335 ForceSendFields []string `json:"-"`
9336
9337
9338
9339
9340 NullFields []string `json:"-"`
9341 }
9342
9343 func (s *GooglePrivacyDlpV2UpdateJobTriggerRequest) MarshalJSON() ([]byte, error) {
9344 type NoMethod GooglePrivacyDlpV2UpdateJobTriggerRequest
9345 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9346 }
9347
9348
9349
9350 type GooglePrivacyDlpV2UpdateStoredInfoTypeRequest struct {
9351
9352
9353
9354 Config *GooglePrivacyDlpV2StoredInfoTypeConfig `json:"config,omitempty"`
9355
9356 UpdateMask string `json:"updateMask,omitempty"`
9357
9358
9359
9360
9361
9362 ForceSendFields []string `json:"-"`
9363
9364
9365
9366
9367 NullFields []string `json:"-"`
9368 }
9369
9370 func (s *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) MarshalJSON() ([]byte, error) {
9371 type NoMethod GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
9372 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9373 }
9374
9375
9376
9377
9378
9379
9380
9381 type GooglePrivacyDlpV2Value struct {
9382
9383 BooleanValue bool `json:"booleanValue,omitempty"`
9384
9385 DateValue *GoogleTypeDate `json:"dateValue,omitempty"`
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397 DayOfWeekValue string `json:"dayOfWeekValue,omitempty"`
9398
9399 FloatValue float64 `json:"floatValue,omitempty"`
9400
9401 IntegerValue int64 `json:"integerValue,omitempty,string"`
9402
9403 StringValue string `json:"stringValue,omitempty"`
9404
9405 TimeValue *GoogleTypeTimeOfDay `json:"timeValue,omitempty"`
9406
9407 TimestampValue string `json:"timestampValue,omitempty"`
9408
9409
9410
9411
9412
9413 ForceSendFields []string `json:"-"`
9414
9415
9416
9417
9418 NullFields []string `json:"-"`
9419 }
9420
9421 func (s *GooglePrivacyDlpV2Value) MarshalJSON() ([]byte, error) {
9422 type NoMethod GooglePrivacyDlpV2Value
9423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9424 }
9425
9426 func (s *GooglePrivacyDlpV2Value) UnmarshalJSON(data []byte) error {
9427 type NoMethod GooglePrivacyDlpV2Value
9428 var s1 struct {
9429 FloatValue gensupport.JSONFloat64 `json:"floatValue"`
9430 *NoMethod
9431 }
9432 s1.NoMethod = (*NoMethod)(s)
9433 if err := json.Unmarshal(data, &s1); err != nil {
9434 return err
9435 }
9436 s.FloatValue = float64(s1.FloatValue)
9437 return nil
9438 }
9439
9440
9441
9442 type GooglePrivacyDlpV2ValueFrequency struct {
9443
9444 Count int64 `json:"count,omitempty,string"`
9445
9446 Value *GooglePrivacyDlpV2Value `json:"value,omitempty"`
9447
9448
9449
9450
9451
9452 ForceSendFields []string `json:"-"`
9453
9454
9455
9456
9457 NullFields []string `json:"-"`
9458 }
9459
9460 func (s *GooglePrivacyDlpV2ValueFrequency) MarshalJSON() ([]byte, error) {
9461 type NoMethod GooglePrivacyDlpV2ValueFrequency
9462 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9463 }
9464
9465
9466
9467 type GooglePrivacyDlpV2VersionDescription struct {
9468
9469 Description string `json:"description,omitempty"`
9470
9471 Version string `json:"version,omitempty"`
9472
9473
9474
9475
9476
9477 ForceSendFields []string `json:"-"`
9478
9479
9480
9481
9482 NullFields []string `json:"-"`
9483 }
9484
9485 func (s *GooglePrivacyDlpV2VersionDescription) MarshalJSON() ([]byte, error) {
9486 type NoMethod GooglePrivacyDlpV2VersionDescription
9487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9488 }
9489
9490
9491
9492 type GooglePrivacyDlpV2WordList struct {
9493
9494
9495
9496 Words []string `json:"words,omitempty"`
9497
9498
9499
9500
9501
9502 ForceSendFields []string `json:"-"`
9503
9504
9505
9506
9507 NullFields []string `json:"-"`
9508 }
9509
9510 func (s *GooglePrivacyDlpV2WordList) MarshalJSON() ([]byte, error) {
9511 type NoMethod GooglePrivacyDlpV2WordList
9512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9513 }
9514
9515
9516
9517
9518
9519
9520 type GoogleProtobufEmpty struct {
9521
9522 googleapi.ServerResponse `json:"-"`
9523 }
9524
9525
9526
9527
9528
9529
9530
9531 type GoogleRpcStatus struct {
9532
9533 Code int64 `json:"code,omitempty"`
9534
9535
9536 Details []googleapi.RawMessage `json:"details,omitempty"`
9537
9538
9539
9540 Message string `json:"message,omitempty"`
9541
9542
9543
9544
9545
9546 ForceSendFields []string `json:"-"`
9547
9548
9549
9550
9551 NullFields []string `json:"-"`
9552 }
9553
9554 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
9555 type NoMethod GoogleRpcStatus
9556 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9557 }
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568 type GoogleTypeDate struct {
9569
9570
9571
9572 Day int64 `json:"day,omitempty"`
9573
9574
9575 Month int64 `json:"month,omitempty"`
9576
9577
9578 Year int64 `json:"year,omitempty"`
9579
9580
9581
9582
9583
9584 ForceSendFields []string `json:"-"`
9585
9586
9587
9588
9589 NullFields []string `json:"-"`
9590 }
9591
9592 func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
9593 type NoMethod GoogleTypeDate
9594 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9595 }
9596
9597
9598
9599
9600
9601 type GoogleTypeTimeOfDay struct {
9602
9603
9604
9605 Hours int64 `json:"hours,omitempty"`
9606
9607 Minutes int64 `json:"minutes,omitempty"`
9608
9609 Nanos int64 `json:"nanos,omitempty"`
9610
9611
9612 Seconds int64 `json:"seconds,omitempty"`
9613
9614
9615
9616
9617
9618 ForceSendFields []string `json:"-"`
9619
9620
9621
9622
9623 NullFields []string `json:"-"`
9624 }
9625
9626 func (s *GoogleTypeTimeOfDay) MarshalJSON() ([]byte, error) {
9627 type NoMethod GoogleTypeTimeOfDay
9628 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9629 }
9630
9631 type InfoTypesListCall struct {
9632 s *Service
9633 urlParams_ gensupport.URLParams
9634 ifNoneMatch_ string
9635 ctx_ context.Context
9636 header_ http.Header
9637 }
9638
9639
9640
9641
9642
9643 func (r *InfoTypesService) List() *InfoTypesListCall {
9644 c := &InfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9645 return c
9646 }
9647
9648
9649
9650 func (c *InfoTypesListCall) Filter(filter string) *InfoTypesListCall {
9651 c.urlParams_.Set("filter", filter)
9652 return c
9653 }
9654
9655
9656
9657
9658 func (c *InfoTypesListCall) LanguageCode(languageCode string) *InfoTypesListCall {
9659 c.urlParams_.Set("languageCode", languageCode)
9660 return c
9661 }
9662
9663
9664
9665 func (c *InfoTypesListCall) LocationId(locationId string) *InfoTypesListCall {
9666 c.urlParams_.Set("locationId", locationId)
9667 return c
9668 }
9669
9670
9671
9672 func (c *InfoTypesListCall) Parent(parent string) *InfoTypesListCall {
9673 c.urlParams_.Set("parent", parent)
9674 return c
9675 }
9676
9677
9678
9679
9680 func (c *InfoTypesListCall) Fields(s ...googleapi.Field) *InfoTypesListCall {
9681 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9682 return c
9683 }
9684
9685
9686
9687
9688 func (c *InfoTypesListCall) IfNoneMatch(entityTag string) *InfoTypesListCall {
9689 c.ifNoneMatch_ = entityTag
9690 return c
9691 }
9692
9693
9694 func (c *InfoTypesListCall) Context(ctx context.Context) *InfoTypesListCall {
9695 c.ctx_ = ctx
9696 return c
9697 }
9698
9699
9700
9701 func (c *InfoTypesListCall) Header() http.Header {
9702 if c.header_ == nil {
9703 c.header_ = make(http.Header)
9704 }
9705 return c.header_
9706 }
9707
9708 func (c *InfoTypesListCall) doRequest(alt string) (*http.Response, error) {
9709 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9710 if c.ifNoneMatch_ != "" {
9711 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9712 }
9713 var body io.Reader = nil
9714 c.urlParams_.Set("alt", alt)
9715 c.urlParams_.Set("prettyPrint", "false")
9716 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/infoTypes")
9717 urls += "?" + c.urlParams_.Encode()
9718 req, err := http.NewRequest("GET", urls, body)
9719 if err != nil {
9720 return nil, err
9721 }
9722 req.Header = reqHeaders
9723 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9724 }
9725
9726
9727
9728
9729
9730
9731
9732 func (c *InfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInfoTypesResponse, error) {
9733 gensupport.SetOptions(c.urlParams_, opts...)
9734 res, err := c.doRequest("json")
9735 if res != nil && res.StatusCode == http.StatusNotModified {
9736 if res.Body != nil {
9737 res.Body.Close()
9738 }
9739 return nil, gensupport.WrapError(&googleapi.Error{
9740 Code: res.StatusCode,
9741 Header: res.Header,
9742 })
9743 }
9744 if err != nil {
9745 return nil, err
9746 }
9747 defer googleapi.CloseBody(res)
9748 if err := googleapi.CheckResponse(res); err != nil {
9749 return nil, gensupport.WrapError(err)
9750 }
9751 ret := &GooglePrivacyDlpV2ListInfoTypesResponse{
9752 ServerResponse: googleapi.ServerResponse{
9753 Header: res.Header,
9754 HTTPStatusCode: res.StatusCode,
9755 },
9756 }
9757 target := &ret
9758 if err := gensupport.DecodeResponse(target, res); err != nil {
9759 return nil, err
9760 }
9761 return ret, nil
9762 }
9763
9764 type LocationsInfoTypesListCall struct {
9765 s *Service
9766 parent string
9767 urlParams_ gensupport.URLParams
9768 ifNoneMatch_ string
9769 ctx_ context.Context
9770 header_ http.Header
9771 }
9772
9773
9774
9775
9776
9777
9778
9779
9780 func (r *LocationsInfoTypesService) List(parent string) *LocationsInfoTypesListCall {
9781 c := &LocationsInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9782 c.parent = parent
9783 return c
9784 }
9785
9786
9787
9788 func (c *LocationsInfoTypesListCall) Filter(filter string) *LocationsInfoTypesListCall {
9789 c.urlParams_.Set("filter", filter)
9790 return c
9791 }
9792
9793
9794
9795
9796 func (c *LocationsInfoTypesListCall) LanguageCode(languageCode string) *LocationsInfoTypesListCall {
9797 c.urlParams_.Set("languageCode", languageCode)
9798 return c
9799 }
9800
9801
9802
9803 func (c *LocationsInfoTypesListCall) LocationId(locationId string) *LocationsInfoTypesListCall {
9804 c.urlParams_.Set("locationId", locationId)
9805 return c
9806 }
9807
9808
9809
9810
9811 func (c *LocationsInfoTypesListCall) Fields(s ...googleapi.Field) *LocationsInfoTypesListCall {
9812 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9813 return c
9814 }
9815
9816
9817
9818
9819 func (c *LocationsInfoTypesListCall) IfNoneMatch(entityTag string) *LocationsInfoTypesListCall {
9820 c.ifNoneMatch_ = entityTag
9821 return c
9822 }
9823
9824
9825 func (c *LocationsInfoTypesListCall) Context(ctx context.Context) *LocationsInfoTypesListCall {
9826 c.ctx_ = ctx
9827 return c
9828 }
9829
9830
9831
9832 func (c *LocationsInfoTypesListCall) Header() http.Header {
9833 if c.header_ == nil {
9834 c.header_ = make(http.Header)
9835 }
9836 return c.header_
9837 }
9838
9839 func (c *LocationsInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
9840 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9841 if c.ifNoneMatch_ != "" {
9842 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9843 }
9844 var body io.Reader = nil
9845 c.urlParams_.Set("alt", alt)
9846 c.urlParams_.Set("prettyPrint", "false")
9847 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/infoTypes")
9848 urls += "?" + c.urlParams_.Encode()
9849 req, err := http.NewRequest("GET", urls, body)
9850 if err != nil {
9851 return nil, err
9852 }
9853 req.Header = reqHeaders
9854 googleapi.Expand(req.URL, map[string]string{
9855 "parent": c.parent,
9856 })
9857 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9858 }
9859
9860
9861
9862
9863
9864
9865
9866 func (c *LocationsInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInfoTypesResponse, error) {
9867 gensupport.SetOptions(c.urlParams_, opts...)
9868 res, err := c.doRequest("json")
9869 if res != nil && res.StatusCode == http.StatusNotModified {
9870 if res.Body != nil {
9871 res.Body.Close()
9872 }
9873 return nil, gensupport.WrapError(&googleapi.Error{
9874 Code: res.StatusCode,
9875 Header: res.Header,
9876 })
9877 }
9878 if err != nil {
9879 return nil, err
9880 }
9881 defer googleapi.CloseBody(res)
9882 if err := googleapi.CheckResponse(res); err != nil {
9883 return nil, gensupport.WrapError(err)
9884 }
9885 ret := &GooglePrivacyDlpV2ListInfoTypesResponse{
9886 ServerResponse: googleapi.ServerResponse{
9887 Header: res.Header,
9888 HTTPStatusCode: res.StatusCode,
9889 },
9890 }
9891 target := &ret
9892 if err := gensupport.DecodeResponse(target, res); err != nil {
9893 return nil, err
9894 }
9895 return ret, nil
9896 }
9897
9898 type OrganizationsDeidentifyTemplatesCreateCall struct {
9899 s *Service
9900 parentid string
9901 googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
9902 urlParams_ gensupport.URLParams
9903 ctx_ context.Context
9904 header_ http.Header
9905 }
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926 func (r *OrganizationsDeidentifyTemplatesService) Create(parentid string, googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) *OrganizationsDeidentifyTemplatesCreateCall {
9927 c := &OrganizationsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9928 c.parentid = parentid
9929 c.googleprivacydlpv2createdeidentifytemplaterequest = googleprivacydlpv2createdeidentifytemplaterequest
9930 return c
9931 }
9932
9933
9934
9935
9936 func (c *OrganizationsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesCreateCall {
9937 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9938 return c
9939 }
9940
9941
9942 func (c *OrganizationsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesCreateCall {
9943 c.ctx_ = ctx
9944 return c
9945 }
9946
9947
9948
9949 func (c *OrganizationsDeidentifyTemplatesCreateCall) Header() http.Header {
9950 if c.header_ == nil {
9951 c.header_ = make(http.Header)
9952 }
9953 return c.header_
9954 }
9955
9956 func (c *OrganizationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
9957 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9958 var body io.Reader = nil
9959 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdeidentifytemplaterequest)
9960 if err != nil {
9961 return nil, err
9962 }
9963 c.urlParams_.Set("alt", alt)
9964 c.urlParams_.Set("prettyPrint", "false")
9965 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
9966 urls += "?" + c.urlParams_.Encode()
9967 req, err := http.NewRequest("POST", urls, body)
9968 if err != nil {
9969 return nil, err
9970 }
9971 req.Header = reqHeaders
9972 googleapi.Expand(req.URL, map[string]string{
9973 "parent": c.parentid,
9974 })
9975 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9976 }
9977
9978
9979
9980
9981
9982
9983
9984 func (c *OrganizationsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
9985 gensupport.SetOptions(c.urlParams_, opts...)
9986 res, err := c.doRequest("json")
9987 if res != nil && res.StatusCode == http.StatusNotModified {
9988 if res.Body != nil {
9989 res.Body.Close()
9990 }
9991 return nil, gensupport.WrapError(&googleapi.Error{
9992 Code: res.StatusCode,
9993 Header: res.Header,
9994 })
9995 }
9996 if err != nil {
9997 return nil, err
9998 }
9999 defer googleapi.CloseBody(res)
10000 if err := googleapi.CheckResponse(res); err != nil {
10001 return nil, gensupport.WrapError(err)
10002 }
10003 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
10004 ServerResponse: googleapi.ServerResponse{
10005 Header: res.Header,
10006 HTTPStatusCode: res.StatusCode,
10007 },
10008 }
10009 target := &ret
10010 if err := gensupport.DecodeResponse(target, res); err != nil {
10011 return nil, err
10012 }
10013 return ret, nil
10014 }
10015
10016 type OrganizationsDeidentifyTemplatesDeleteCall struct {
10017 s *Service
10018 name string
10019 urlParams_ gensupport.URLParams
10020 ctx_ context.Context
10021 header_ http.Header
10022 }
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032 func (r *OrganizationsDeidentifyTemplatesService) Delete(name string) *OrganizationsDeidentifyTemplatesDeleteCall {
10033 c := &OrganizationsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10034 c.name = name
10035 return c
10036 }
10037
10038
10039
10040
10041 func (c *OrganizationsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesDeleteCall {
10042 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10043 return c
10044 }
10045
10046
10047 func (c *OrganizationsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesDeleteCall {
10048 c.ctx_ = ctx
10049 return c
10050 }
10051
10052
10053
10054 func (c *OrganizationsDeidentifyTemplatesDeleteCall) Header() http.Header {
10055 if c.header_ == nil {
10056 c.header_ = make(http.Header)
10057 }
10058 return c.header_
10059 }
10060
10061 func (c *OrganizationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
10062 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10063 var body io.Reader = nil
10064 c.urlParams_.Set("alt", alt)
10065 c.urlParams_.Set("prettyPrint", "false")
10066 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
10067 urls += "?" + c.urlParams_.Encode()
10068 req, err := http.NewRequest("DELETE", urls, body)
10069 if err != nil {
10070 return nil, err
10071 }
10072 req.Header = reqHeaders
10073 googleapi.Expand(req.URL, map[string]string{
10074 "name": c.name,
10075 })
10076 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10077 }
10078
10079
10080
10081
10082
10083
10084
10085 func (c *OrganizationsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
10086 gensupport.SetOptions(c.urlParams_, opts...)
10087 res, err := c.doRequest("json")
10088 if res != nil && res.StatusCode == http.StatusNotModified {
10089 if res.Body != nil {
10090 res.Body.Close()
10091 }
10092 return nil, gensupport.WrapError(&googleapi.Error{
10093 Code: res.StatusCode,
10094 Header: res.Header,
10095 })
10096 }
10097 if err != nil {
10098 return nil, err
10099 }
10100 defer googleapi.CloseBody(res)
10101 if err := googleapi.CheckResponse(res); err != nil {
10102 return nil, gensupport.WrapError(err)
10103 }
10104 ret := &GoogleProtobufEmpty{
10105 ServerResponse: googleapi.ServerResponse{
10106 Header: res.Header,
10107 HTTPStatusCode: res.StatusCode,
10108 },
10109 }
10110 target := &ret
10111 if err := gensupport.DecodeResponse(target, res); err != nil {
10112 return nil, err
10113 }
10114 return ret, nil
10115 }
10116
10117 type OrganizationsDeidentifyTemplatesGetCall struct {
10118 s *Service
10119 name string
10120 urlParams_ gensupport.URLParams
10121 ifNoneMatch_ string
10122 ctx_ context.Context
10123 header_ http.Header
10124 }
10125
10126
10127
10128
10129
10130
10131
10132
10133 func (r *OrganizationsDeidentifyTemplatesService) Get(name string) *OrganizationsDeidentifyTemplatesGetCall {
10134 c := &OrganizationsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10135 c.name = name
10136 return c
10137 }
10138
10139
10140
10141
10142 func (c *OrganizationsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesGetCall {
10143 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10144 return c
10145 }
10146
10147
10148
10149
10150 func (c *OrganizationsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsDeidentifyTemplatesGetCall {
10151 c.ifNoneMatch_ = entityTag
10152 return c
10153 }
10154
10155
10156 func (c *OrganizationsDeidentifyTemplatesGetCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesGetCall {
10157 c.ctx_ = ctx
10158 return c
10159 }
10160
10161
10162
10163 func (c *OrganizationsDeidentifyTemplatesGetCall) Header() http.Header {
10164 if c.header_ == nil {
10165 c.header_ = make(http.Header)
10166 }
10167 return c.header_
10168 }
10169
10170 func (c *OrganizationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
10171 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10172 if c.ifNoneMatch_ != "" {
10173 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10174 }
10175 var body io.Reader = nil
10176 c.urlParams_.Set("alt", alt)
10177 c.urlParams_.Set("prettyPrint", "false")
10178 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
10179 urls += "?" + c.urlParams_.Encode()
10180 req, err := http.NewRequest("GET", urls, body)
10181 if err != nil {
10182 return nil, err
10183 }
10184 req.Header = reqHeaders
10185 googleapi.Expand(req.URL, map[string]string{
10186 "name": c.name,
10187 })
10188 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10189 }
10190
10191
10192
10193
10194
10195
10196
10197 func (c *OrganizationsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
10198 gensupport.SetOptions(c.urlParams_, opts...)
10199 res, err := c.doRequest("json")
10200 if res != nil && res.StatusCode == http.StatusNotModified {
10201 if res.Body != nil {
10202 res.Body.Close()
10203 }
10204 return nil, gensupport.WrapError(&googleapi.Error{
10205 Code: res.StatusCode,
10206 Header: res.Header,
10207 })
10208 }
10209 if err != nil {
10210 return nil, err
10211 }
10212 defer googleapi.CloseBody(res)
10213 if err := googleapi.CheckResponse(res); err != nil {
10214 return nil, gensupport.WrapError(err)
10215 }
10216 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
10217 ServerResponse: googleapi.ServerResponse{
10218 Header: res.Header,
10219 HTTPStatusCode: res.StatusCode,
10220 },
10221 }
10222 target := &ret
10223 if err := gensupport.DecodeResponse(target, res); err != nil {
10224 return nil, err
10225 }
10226 return ret, nil
10227 }
10228
10229 type OrganizationsDeidentifyTemplatesListCall struct {
10230 s *Service
10231 parentid string
10232 urlParams_ gensupport.URLParams
10233 ifNoneMatch_ string
10234 ctx_ context.Context
10235 header_ http.Header
10236 }
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256 func (r *OrganizationsDeidentifyTemplatesService) List(parentid string) *OrganizationsDeidentifyTemplatesListCall {
10257 c := &OrganizationsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10258 c.parentid = parentid
10259 return c
10260 }
10261
10262
10263
10264 func (c *OrganizationsDeidentifyTemplatesListCall) LocationId(locationId string) *OrganizationsDeidentifyTemplatesListCall {
10265 c.urlParams_.Set("locationId", locationId)
10266 return c
10267 }
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277 func (c *OrganizationsDeidentifyTemplatesListCall) OrderBy(orderBy string) *OrganizationsDeidentifyTemplatesListCall {
10278 c.urlParams_.Set("orderBy", orderBy)
10279 return c
10280 }
10281
10282
10283
10284
10285 func (c *OrganizationsDeidentifyTemplatesListCall) PageSize(pageSize int64) *OrganizationsDeidentifyTemplatesListCall {
10286 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10287 return c
10288 }
10289
10290
10291
10292 func (c *OrganizationsDeidentifyTemplatesListCall) PageToken(pageToken string) *OrganizationsDeidentifyTemplatesListCall {
10293 c.urlParams_.Set("pageToken", pageToken)
10294 return c
10295 }
10296
10297
10298
10299
10300 func (c *OrganizationsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesListCall {
10301 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10302 return c
10303 }
10304
10305
10306
10307
10308 func (c *OrganizationsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsDeidentifyTemplatesListCall {
10309 c.ifNoneMatch_ = entityTag
10310 return c
10311 }
10312
10313
10314 func (c *OrganizationsDeidentifyTemplatesListCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesListCall {
10315 c.ctx_ = ctx
10316 return c
10317 }
10318
10319
10320
10321 func (c *OrganizationsDeidentifyTemplatesListCall) Header() http.Header {
10322 if c.header_ == nil {
10323 c.header_ = make(http.Header)
10324 }
10325 return c.header_
10326 }
10327
10328 func (c *OrganizationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
10329 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10330 if c.ifNoneMatch_ != "" {
10331 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10332 }
10333 var body io.Reader = nil
10334 c.urlParams_.Set("alt", alt)
10335 c.urlParams_.Set("prettyPrint", "false")
10336 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
10337 urls += "?" + c.urlParams_.Encode()
10338 req, err := http.NewRequest("GET", urls, body)
10339 if err != nil {
10340 return nil, err
10341 }
10342 req.Header = reqHeaders
10343 googleapi.Expand(req.URL, map[string]string{
10344 "parent": c.parentid,
10345 })
10346 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10347 }
10348
10349
10350
10351
10352
10353
10354
10355 func (c *OrganizationsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse, error) {
10356 gensupport.SetOptions(c.urlParams_, opts...)
10357 res, err := c.doRequest("json")
10358 if res != nil && res.StatusCode == http.StatusNotModified {
10359 if res.Body != nil {
10360 res.Body.Close()
10361 }
10362 return nil, gensupport.WrapError(&googleapi.Error{
10363 Code: res.StatusCode,
10364 Header: res.Header,
10365 })
10366 }
10367 if err != nil {
10368 return nil, err
10369 }
10370 defer googleapi.CloseBody(res)
10371 if err := googleapi.CheckResponse(res); err != nil {
10372 return nil, gensupport.WrapError(err)
10373 }
10374 ret := &GooglePrivacyDlpV2ListDeidentifyTemplatesResponse{
10375 ServerResponse: googleapi.ServerResponse{
10376 Header: res.Header,
10377 HTTPStatusCode: res.StatusCode,
10378 },
10379 }
10380 target := &ret
10381 if err := gensupport.DecodeResponse(target, res); err != nil {
10382 return nil, err
10383 }
10384 return ret, nil
10385 }
10386
10387
10388
10389
10390 func (c *OrganizationsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) error) error {
10391 c.ctx_ = ctx
10392 defer c.PageToken(c.urlParams_.Get("pageToken"))
10393 for {
10394 x, err := c.Do()
10395 if err != nil {
10396 return err
10397 }
10398 if err := f(x); err != nil {
10399 return err
10400 }
10401 if x.NextPageToken == "" {
10402 return nil
10403 }
10404 c.PageToken(x.NextPageToken)
10405 }
10406 }
10407
10408 type OrganizationsDeidentifyTemplatesPatchCall struct {
10409 s *Service
10410 name string
10411 googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
10412 urlParams_ gensupport.URLParams
10413 ctx_ context.Context
10414 header_ http.Header
10415 }
10416
10417
10418
10419
10420
10421
10422
10423
10424 func (r *OrganizationsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) *OrganizationsDeidentifyTemplatesPatchCall {
10425 c := &OrganizationsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10426 c.name = name
10427 c.googleprivacydlpv2updatedeidentifytemplaterequest = googleprivacydlpv2updatedeidentifytemplaterequest
10428 return c
10429 }
10430
10431
10432
10433
10434 func (c *OrganizationsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsDeidentifyTemplatesPatchCall {
10435 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10436 return c
10437 }
10438
10439
10440 func (c *OrganizationsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *OrganizationsDeidentifyTemplatesPatchCall {
10441 c.ctx_ = ctx
10442 return c
10443 }
10444
10445
10446
10447 func (c *OrganizationsDeidentifyTemplatesPatchCall) Header() http.Header {
10448 if c.header_ == nil {
10449 c.header_ = make(http.Header)
10450 }
10451 return c.header_
10452 }
10453
10454 func (c *OrganizationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
10455 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10456 var body io.Reader = nil
10457 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatedeidentifytemplaterequest)
10458 if err != nil {
10459 return nil, err
10460 }
10461 c.urlParams_.Set("alt", alt)
10462 c.urlParams_.Set("prettyPrint", "false")
10463 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
10464 urls += "?" + c.urlParams_.Encode()
10465 req, err := http.NewRequest("PATCH", urls, body)
10466 if err != nil {
10467 return nil, err
10468 }
10469 req.Header = reqHeaders
10470 googleapi.Expand(req.URL, map[string]string{
10471 "name": c.name,
10472 })
10473 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10474 }
10475
10476
10477
10478
10479
10480
10481
10482 func (c *OrganizationsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
10483 gensupport.SetOptions(c.urlParams_, opts...)
10484 res, err := c.doRequest("json")
10485 if res != nil && res.StatusCode == http.StatusNotModified {
10486 if res.Body != nil {
10487 res.Body.Close()
10488 }
10489 return nil, gensupport.WrapError(&googleapi.Error{
10490 Code: res.StatusCode,
10491 Header: res.Header,
10492 })
10493 }
10494 if err != nil {
10495 return nil, err
10496 }
10497 defer googleapi.CloseBody(res)
10498 if err := googleapi.CheckResponse(res); err != nil {
10499 return nil, gensupport.WrapError(err)
10500 }
10501 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
10502 ServerResponse: googleapi.ServerResponse{
10503 Header: res.Header,
10504 HTTPStatusCode: res.StatusCode,
10505 },
10506 }
10507 target := &ret
10508 if err := gensupport.DecodeResponse(target, res); err != nil {
10509 return nil, err
10510 }
10511 return ret, nil
10512 }
10513
10514 type OrganizationsInspectTemplatesCreateCall struct {
10515 s *Service
10516 parentid string
10517 googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest
10518 urlParams_ gensupport.URLParams
10519 ctx_ context.Context
10520 header_ http.Header
10521 }
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542 func (r *OrganizationsInspectTemplatesService) Create(parentid string, googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest) *OrganizationsInspectTemplatesCreateCall {
10543 c := &OrganizationsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10544 c.parentid = parentid
10545 c.googleprivacydlpv2createinspecttemplaterequest = googleprivacydlpv2createinspecttemplaterequest
10546 return c
10547 }
10548
10549
10550
10551
10552 func (c *OrganizationsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesCreateCall {
10553 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10554 return c
10555 }
10556
10557
10558 func (c *OrganizationsInspectTemplatesCreateCall) Context(ctx context.Context) *OrganizationsInspectTemplatesCreateCall {
10559 c.ctx_ = ctx
10560 return c
10561 }
10562
10563
10564
10565 func (c *OrganizationsInspectTemplatesCreateCall) Header() http.Header {
10566 if c.header_ == nil {
10567 c.header_ = make(http.Header)
10568 }
10569 return c.header_
10570 }
10571
10572 func (c *OrganizationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
10573 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10574 var body io.Reader = nil
10575 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createinspecttemplaterequest)
10576 if err != nil {
10577 return nil, err
10578 }
10579 c.urlParams_.Set("alt", alt)
10580 c.urlParams_.Set("prettyPrint", "false")
10581 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
10582 urls += "?" + c.urlParams_.Encode()
10583 req, err := http.NewRequest("POST", urls, body)
10584 if err != nil {
10585 return nil, err
10586 }
10587 req.Header = reqHeaders
10588 googleapi.Expand(req.URL, map[string]string{
10589 "parent": c.parentid,
10590 })
10591 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10592 }
10593
10594
10595
10596
10597
10598
10599
10600 func (c *OrganizationsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
10601 gensupport.SetOptions(c.urlParams_, opts...)
10602 res, err := c.doRequest("json")
10603 if res != nil && res.StatusCode == http.StatusNotModified {
10604 if res.Body != nil {
10605 res.Body.Close()
10606 }
10607 return nil, gensupport.WrapError(&googleapi.Error{
10608 Code: res.StatusCode,
10609 Header: res.Header,
10610 })
10611 }
10612 if err != nil {
10613 return nil, err
10614 }
10615 defer googleapi.CloseBody(res)
10616 if err := googleapi.CheckResponse(res); err != nil {
10617 return nil, gensupport.WrapError(err)
10618 }
10619 ret := &GooglePrivacyDlpV2InspectTemplate{
10620 ServerResponse: googleapi.ServerResponse{
10621 Header: res.Header,
10622 HTTPStatusCode: res.StatusCode,
10623 },
10624 }
10625 target := &ret
10626 if err := gensupport.DecodeResponse(target, res); err != nil {
10627 return nil, err
10628 }
10629 return ret, nil
10630 }
10631
10632 type OrganizationsInspectTemplatesDeleteCall struct {
10633 s *Service
10634 name string
10635 urlParams_ gensupport.URLParams
10636 ctx_ context.Context
10637 header_ http.Header
10638 }
10639
10640
10641
10642
10643
10644
10645
10646
10647 func (r *OrganizationsInspectTemplatesService) Delete(name string) *OrganizationsInspectTemplatesDeleteCall {
10648 c := &OrganizationsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10649 c.name = name
10650 return c
10651 }
10652
10653
10654
10655
10656 func (c *OrganizationsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesDeleteCall {
10657 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10658 return c
10659 }
10660
10661
10662 func (c *OrganizationsInspectTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsInspectTemplatesDeleteCall {
10663 c.ctx_ = ctx
10664 return c
10665 }
10666
10667
10668
10669 func (c *OrganizationsInspectTemplatesDeleteCall) Header() http.Header {
10670 if c.header_ == nil {
10671 c.header_ = make(http.Header)
10672 }
10673 return c.header_
10674 }
10675
10676 func (c *OrganizationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
10677 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10678 var body io.Reader = nil
10679 c.urlParams_.Set("alt", alt)
10680 c.urlParams_.Set("prettyPrint", "false")
10681 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
10682 urls += "?" + c.urlParams_.Encode()
10683 req, err := http.NewRequest("DELETE", urls, body)
10684 if err != nil {
10685 return nil, err
10686 }
10687 req.Header = reqHeaders
10688 googleapi.Expand(req.URL, map[string]string{
10689 "name": c.name,
10690 })
10691 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10692 }
10693
10694
10695
10696
10697
10698
10699
10700 func (c *OrganizationsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
10701 gensupport.SetOptions(c.urlParams_, opts...)
10702 res, err := c.doRequest("json")
10703 if res != nil && res.StatusCode == http.StatusNotModified {
10704 if res.Body != nil {
10705 res.Body.Close()
10706 }
10707 return nil, gensupport.WrapError(&googleapi.Error{
10708 Code: res.StatusCode,
10709 Header: res.Header,
10710 })
10711 }
10712 if err != nil {
10713 return nil, err
10714 }
10715 defer googleapi.CloseBody(res)
10716 if err := googleapi.CheckResponse(res); err != nil {
10717 return nil, gensupport.WrapError(err)
10718 }
10719 ret := &GoogleProtobufEmpty{
10720 ServerResponse: googleapi.ServerResponse{
10721 Header: res.Header,
10722 HTTPStatusCode: res.StatusCode,
10723 },
10724 }
10725 target := &ret
10726 if err := gensupport.DecodeResponse(target, res); err != nil {
10727 return nil, err
10728 }
10729 return ret, nil
10730 }
10731
10732 type OrganizationsInspectTemplatesGetCall struct {
10733 s *Service
10734 name string
10735 urlParams_ gensupport.URLParams
10736 ifNoneMatch_ string
10737 ctx_ context.Context
10738 header_ http.Header
10739 }
10740
10741
10742
10743
10744
10745
10746
10747
10748 func (r *OrganizationsInspectTemplatesService) Get(name string) *OrganizationsInspectTemplatesGetCall {
10749 c := &OrganizationsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10750 c.name = name
10751 return c
10752 }
10753
10754
10755
10756
10757 func (c *OrganizationsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesGetCall {
10758 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10759 return c
10760 }
10761
10762
10763
10764
10765 func (c *OrganizationsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsInspectTemplatesGetCall {
10766 c.ifNoneMatch_ = entityTag
10767 return c
10768 }
10769
10770
10771 func (c *OrganizationsInspectTemplatesGetCall) Context(ctx context.Context) *OrganizationsInspectTemplatesGetCall {
10772 c.ctx_ = ctx
10773 return c
10774 }
10775
10776
10777
10778 func (c *OrganizationsInspectTemplatesGetCall) Header() http.Header {
10779 if c.header_ == nil {
10780 c.header_ = make(http.Header)
10781 }
10782 return c.header_
10783 }
10784
10785 func (c *OrganizationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
10786 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10787 if c.ifNoneMatch_ != "" {
10788 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10789 }
10790 var body io.Reader = nil
10791 c.urlParams_.Set("alt", alt)
10792 c.urlParams_.Set("prettyPrint", "false")
10793 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
10794 urls += "?" + c.urlParams_.Encode()
10795 req, err := http.NewRequest("GET", urls, body)
10796 if err != nil {
10797 return nil, err
10798 }
10799 req.Header = reqHeaders
10800 googleapi.Expand(req.URL, map[string]string{
10801 "name": c.name,
10802 })
10803 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10804 }
10805
10806
10807
10808
10809
10810
10811
10812 func (c *OrganizationsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
10813 gensupport.SetOptions(c.urlParams_, opts...)
10814 res, err := c.doRequest("json")
10815 if res != nil && res.StatusCode == http.StatusNotModified {
10816 if res.Body != nil {
10817 res.Body.Close()
10818 }
10819 return nil, gensupport.WrapError(&googleapi.Error{
10820 Code: res.StatusCode,
10821 Header: res.Header,
10822 })
10823 }
10824 if err != nil {
10825 return nil, err
10826 }
10827 defer googleapi.CloseBody(res)
10828 if err := googleapi.CheckResponse(res); err != nil {
10829 return nil, gensupport.WrapError(err)
10830 }
10831 ret := &GooglePrivacyDlpV2InspectTemplate{
10832 ServerResponse: googleapi.ServerResponse{
10833 Header: res.Header,
10834 HTTPStatusCode: res.StatusCode,
10835 },
10836 }
10837 target := &ret
10838 if err := gensupport.DecodeResponse(target, res); err != nil {
10839 return nil, err
10840 }
10841 return ret, nil
10842 }
10843
10844 type OrganizationsInspectTemplatesListCall struct {
10845 s *Service
10846 parentid string
10847 urlParams_ gensupport.URLParams
10848 ifNoneMatch_ string
10849 ctx_ context.Context
10850 header_ http.Header
10851 }
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871 func (r *OrganizationsInspectTemplatesService) List(parentid string) *OrganizationsInspectTemplatesListCall {
10872 c := &OrganizationsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10873 c.parentid = parentid
10874 return c
10875 }
10876
10877
10878
10879 func (c *OrganizationsInspectTemplatesListCall) LocationId(locationId string) *OrganizationsInspectTemplatesListCall {
10880 c.urlParams_.Set("locationId", locationId)
10881 return c
10882 }
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892 func (c *OrganizationsInspectTemplatesListCall) OrderBy(orderBy string) *OrganizationsInspectTemplatesListCall {
10893 c.urlParams_.Set("orderBy", orderBy)
10894 return c
10895 }
10896
10897
10898
10899
10900 func (c *OrganizationsInspectTemplatesListCall) PageSize(pageSize int64) *OrganizationsInspectTemplatesListCall {
10901 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10902 return c
10903 }
10904
10905
10906
10907 func (c *OrganizationsInspectTemplatesListCall) PageToken(pageToken string) *OrganizationsInspectTemplatesListCall {
10908 c.urlParams_.Set("pageToken", pageToken)
10909 return c
10910 }
10911
10912
10913
10914
10915 func (c *OrganizationsInspectTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesListCall {
10916 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10917 return c
10918 }
10919
10920
10921
10922
10923 func (c *OrganizationsInspectTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsInspectTemplatesListCall {
10924 c.ifNoneMatch_ = entityTag
10925 return c
10926 }
10927
10928
10929 func (c *OrganizationsInspectTemplatesListCall) Context(ctx context.Context) *OrganizationsInspectTemplatesListCall {
10930 c.ctx_ = ctx
10931 return c
10932 }
10933
10934
10935
10936 func (c *OrganizationsInspectTemplatesListCall) Header() http.Header {
10937 if c.header_ == nil {
10938 c.header_ = make(http.Header)
10939 }
10940 return c.header_
10941 }
10942
10943 func (c *OrganizationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
10944 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10945 if c.ifNoneMatch_ != "" {
10946 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10947 }
10948 var body io.Reader = nil
10949 c.urlParams_.Set("alt", alt)
10950 c.urlParams_.Set("prettyPrint", "false")
10951 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
10952 urls += "?" + c.urlParams_.Encode()
10953 req, err := http.NewRequest("GET", urls, body)
10954 if err != nil {
10955 return nil, err
10956 }
10957 req.Header = reqHeaders
10958 googleapi.Expand(req.URL, map[string]string{
10959 "parent": c.parentid,
10960 })
10961 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10962 }
10963
10964
10965
10966
10967
10968
10969
10970 func (c *OrganizationsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInspectTemplatesResponse, error) {
10971 gensupport.SetOptions(c.urlParams_, opts...)
10972 res, err := c.doRequest("json")
10973 if res != nil && res.StatusCode == http.StatusNotModified {
10974 if res.Body != nil {
10975 res.Body.Close()
10976 }
10977 return nil, gensupport.WrapError(&googleapi.Error{
10978 Code: res.StatusCode,
10979 Header: res.Header,
10980 })
10981 }
10982 if err != nil {
10983 return nil, err
10984 }
10985 defer googleapi.CloseBody(res)
10986 if err := googleapi.CheckResponse(res); err != nil {
10987 return nil, gensupport.WrapError(err)
10988 }
10989 ret := &GooglePrivacyDlpV2ListInspectTemplatesResponse{
10990 ServerResponse: googleapi.ServerResponse{
10991 Header: res.Header,
10992 HTTPStatusCode: res.StatusCode,
10993 },
10994 }
10995 target := &ret
10996 if err := gensupport.DecodeResponse(target, res); err != nil {
10997 return nil, err
10998 }
10999 return ret, nil
11000 }
11001
11002
11003
11004
11005 func (c *OrganizationsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListInspectTemplatesResponse) error) error {
11006 c.ctx_ = ctx
11007 defer c.PageToken(c.urlParams_.Get("pageToken"))
11008 for {
11009 x, err := c.Do()
11010 if err != nil {
11011 return err
11012 }
11013 if err := f(x); err != nil {
11014 return err
11015 }
11016 if x.NextPageToken == "" {
11017 return nil
11018 }
11019 c.PageToken(x.NextPageToken)
11020 }
11021 }
11022
11023 type OrganizationsInspectTemplatesPatchCall struct {
11024 s *Service
11025 name string
11026 googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest
11027 urlParams_ gensupport.URLParams
11028 ctx_ context.Context
11029 header_ http.Header
11030 }
11031
11032
11033
11034
11035
11036
11037
11038
11039 func (r *OrganizationsInspectTemplatesService) Patch(name string, googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest) *OrganizationsInspectTemplatesPatchCall {
11040 c := &OrganizationsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11041 c.name = name
11042 c.googleprivacydlpv2updateinspecttemplaterequest = googleprivacydlpv2updateinspecttemplaterequest
11043 return c
11044 }
11045
11046
11047
11048
11049 func (c *OrganizationsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsInspectTemplatesPatchCall {
11050 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11051 return c
11052 }
11053
11054
11055 func (c *OrganizationsInspectTemplatesPatchCall) Context(ctx context.Context) *OrganizationsInspectTemplatesPatchCall {
11056 c.ctx_ = ctx
11057 return c
11058 }
11059
11060
11061
11062 func (c *OrganizationsInspectTemplatesPatchCall) Header() http.Header {
11063 if c.header_ == nil {
11064 c.header_ = make(http.Header)
11065 }
11066 return c.header_
11067 }
11068
11069 func (c *OrganizationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
11070 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11071 var body io.Reader = nil
11072 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateinspecttemplaterequest)
11073 if err != nil {
11074 return nil, err
11075 }
11076 c.urlParams_.Set("alt", alt)
11077 c.urlParams_.Set("prettyPrint", "false")
11078 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
11079 urls += "?" + c.urlParams_.Encode()
11080 req, err := http.NewRequest("PATCH", urls, body)
11081 if err != nil {
11082 return nil, err
11083 }
11084 req.Header = reqHeaders
11085 googleapi.Expand(req.URL, map[string]string{
11086 "name": c.name,
11087 })
11088 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11089 }
11090
11091
11092
11093
11094
11095
11096
11097 func (c *OrganizationsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
11098 gensupport.SetOptions(c.urlParams_, opts...)
11099 res, err := c.doRequest("json")
11100 if res != nil && res.StatusCode == http.StatusNotModified {
11101 if res.Body != nil {
11102 res.Body.Close()
11103 }
11104 return nil, gensupport.WrapError(&googleapi.Error{
11105 Code: res.StatusCode,
11106 Header: res.Header,
11107 })
11108 }
11109 if err != nil {
11110 return nil, err
11111 }
11112 defer googleapi.CloseBody(res)
11113 if err := googleapi.CheckResponse(res); err != nil {
11114 return nil, gensupport.WrapError(err)
11115 }
11116 ret := &GooglePrivacyDlpV2InspectTemplate{
11117 ServerResponse: googleapi.ServerResponse{
11118 Header: res.Header,
11119 HTTPStatusCode: res.StatusCode,
11120 },
11121 }
11122 target := &ret
11123 if err := gensupport.DecodeResponse(target, res); err != nil {
11124 return nil, err
11125 }
11126 return ret, nil
11127 }
11128
11129 type OrganizationsLocationsColumnDataProfilesGetCall struct {
11130 s *Service
11131 name string
11132 urlParams_ gensupport.URLParams
11133 ifNoneMatch_ string
11134 ctx_ context.Context
11135 header_ http.Header
11136 }
11137
11138
11139
11140
11141
11142 func (r *OrganizationsLocationsColumnDataProfilesService) Get(name string) *OrganizationsLocationsColumnDataProfilesGetCall {
11143 c := &OrganizationsLocationsColumnDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11144 c.name = name
11145 return c
11146 }
11147
11148
11149
11150
11151 func (c *OrganizationsLocationsColumnDataProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsColumnDataProfilesGetCall {
11152 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11153 return c
11154 }
11155
11156
11157
11158
11159 func (c *OrganizationsLocationsColumnDataProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsColumnDataProfilesGetCall {
11160 c.ifNoneMatch_ = entityTag
11161 return c
11162 }
11163
11164
11165 func (c *OrganizationsLocationsColumnDataProfilesGetCall) Context(ctx context.Context) *OrganizationsLocationsColumnDataProfilesGetCall {
11166 c.ctx_ = ctx
11167 return c
11168 }
11169
11170
11171
11172 func (c *OrganizationsLocationsColumnDataProfilesGetCall) Header() http.Header {
11173 if c.header_ == nil {
11174 c.header_ = make(http.Header)
11175 }
11176 return c.header_
11177 }
11178
11179 func (c *OrganizationsLocationsColumnDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
11180 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11181 if c.ifNoneMatch_ != "" {
11182 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11183 }
11184 var body io.Reader = nil
11185 c.urlParams_.Set("alt", alt)
11186 c.urlParams_.Set("prettyPrint", "false")
11187 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
11188 urls += "?" + c.urlParams_.Encode()
11189 req, err := http.NewRequest("GET", urls, body)
11190 if err != nil {
11191 return nil, err
11192 }
11193 req.Header = reqHeaders
11194 googleapi.Expand(req.URL, map[string]string{
11195 "name": c.name,
11196 })
11197 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11198 }
11199
11200
11201
11202
11203
11204
11205
11206 func (c *OrganizationsLocationsColumnDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ColumnDataProfile, error) {
11207 gensupport.SetOptions(c.urlParams_, opts...)
11208 res, err := c.doRequest("json")
11209 if res != nil && res.StatusCode == http.StatusNotModified {
11210 if res.Body != nil {
11211 res.Body.Close()
11212 }
11213 return nil, gensupport.WrapError(&googleapi.Error{
11214 Code: res.StatusCode,
11215 Header: res.Header,
11216 })
11217 }
11218 if err != nil {
11219 return nil, err
11220 }
11221 defer googleapi.CloseBody(res)
11222 if err := googleapi.CheckResponse(res); err != nil {
11223 return nil, gensupport.WrapError(err)
11224 }
11225 ret := &GooglePrivacyDlpV2ColumnDataProfile{
11226 ServerResponse: googleapi.ServerResponse{
11227 Header: res.Header,
11228 HTTPStatusCode: res.StatusCode,
11229 },
11230 }
11231 target := &ret
11232 if err := gensupport.DecodeResponse(target, res); err != nil {
11233 return nil, err
11234 }
11235 return ret, nil
11236 }
11237
11238 type OrganizationsLocationsColumnDataProfilesListCall struct {
11239 s *Service
11240 parent string
11241 urlParams_ gensupport.URLParams
11242 ifNoneMatch_ string
11243 ctx_ context.Context
11244 header_ http.Header
11245 }
11246
11247
11248
11249
11250
11251
11252 func (r *OrganizationsLocationsColumnDataProfilesService) List(parent string) *OrganizationsLocationsColumnDataProfilesListCall {
11253 c := &OrganizationsLocationsColumnDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11254 c.parent = parent
11255 return c
11256 }
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276 func (c *OrganizationsLocationsColumnDataProfilesListCall) Filter(filter string) *OrganizationsLocationsColumnDataProfilesListCall {
11277 c.urlParams_.Set("filter", filter)
11278 return c
11279 }
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292 func (c *OrganizationsLocationsColumnDataProfilesListCall) OrderBy(orderBy string) *OrganizationsLocationsColumnDataProfilesListCall {
11293 c.urlParams_.Set("orderBy", orderBy)
11294 return c
11295 }
11296
11297
11298
11299
11300 func (c *OrganizationsLocationsColumnDataProfilesListCall) PageSize(pageSize int64) *OrganizationsLocationsColumnDataProfilesListCall {
11301 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11302 return c
11303 }
11304
11305
11306
11307 func (c *OrganizationsLocationsColumnDataProfilesListCall) PageToken(pageToken string) *OrganizationsLocationsColumnDataProfilesListCall {
11308 c.urlParams_.Set("pageToken", pageToken)
11309 return c
11310 }
11311
11312
11313
11314
11315 func (c *OrganizationsLocationsColumnDataProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsColumnDataProfilesListCall {
11316 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11317 return c
11318 }
11319
11320
11321
11322
11323 func (c *OrganizationsLocationsColumnDataProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsColumnDataProfilesListCall {
11324 c.ifNoneMatch_ = entityTag
11325 return c
11326 }
11327
11328
11329 func (c *OrganizationsLocationsColumnDataProfilesListCall) Context(ctx context.Context) *OrganizationsLocationsColumnDataProfilesListCall {
11330 c.ctx_ = ctx
11331 return c
11332 }
11333
11334
11335
11336 func (c *OrganizationsLocationsColumnDataProfilesListCall) Header() http.Header {
11337 if c.header_ == nil {
11338 c.header_ = make(http.Header)
11339 }
11340 return c.header_
11341 }
11342
11343 func (c *OrganizationsLocationsColumnDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
11344 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11345 if c.ifNoneMatch_ != "" {
11346 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11347 }
11348 var body io.Reader = nil
11349 c.urlParams_.Set("alt", alt)
11350 c.urlParams_.Set("prettyPrint", "false")
11351 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/columnDataProfiles")
11352 urls += "?" + c.urlParams_.Encode()
11353 req, err := http.NewRequest("GET", urls, body)
11354 if err != nil {
11355 return nil, err
11356 }
11357 req.Header = reqHeaders
11358 googleapi.Expand(req.URL, map[string]string{
11359 "parent": c.parent,
11360 })
11361 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11362 }
11363
11364
11365
11366
11367
11368
11369
11370 func (c *OrganizationsLocationsColumnDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListColumnDataProfilesResponse, error) {
11371 gensupport.SetOptions(c.urlParams_, opts...)
11372 res, err := c.doRequest("json")
11373 if res != nil && res.StatusCode == http.StatusNotModified {
11374 if res.Body != nil {
11375 res.Body.Close()
11376 }
11377 return nil, gensupport.WrapError(&googleapi.Error{
11378 Code: res.StatusCode,
11379 Header: res.Header,
11380 })
11381 }
11382 if err != nil {
11383 return nil, err
11384 }
11385 defer googleapi.CloseBody(res)
11386 if err := googleapi.CheckResponse(res); err != nil {
11387 return nil, gensupport.WrapError(err)
11388 }
11389 ret := &GooglePrivacyDlpV2ListColumnDataProfilesResponse{
11390 ServerResponse: googleapi.ServerResponse{
11391 Header: res.Header,
11392 HTTPStatusCode: res.StatusCode,
11393 },
11394 }
11395 target := &ret
11396 if err := gensupport.DecodeResponse(target, res); err != nil {
11397 return nil, err
11398 }
11399 return ret, nil
11400 }
11401
11402
11403
11404
11405 func (c *OrganizationsLocationsColumnDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListColumnDataProfilesResponse) error) error {
11406 c.ctx_ = ctx
11407 defer c.PageToken(c.urlParams_.Get("pageToken"))
11408 for {
11409 x, err := c.Do()
11410 if err != nil {
11411 return err
11412 }
11413 if err := f(x); err != nil {
11414 return err
11415 }
11416 if x.NextPageToken == "" {
11417 return nil
11418 }
11419 c.PageToken(x.NextPageToken)
11420 }
11421 }
11422
11423 type OrganizationsLocationsConnectionsSearchCall struct {
11424 s *Service
11425 parent string
11426 urlParams_ gensupport.URLParams
11427 ifNoneMatch_ string
11428 ctx_ context.Context
11429 header_ http.Header
11430 }
11431
11432
11433
11434
11435
11436 func (r *OrganizationsLocationsConnectionsService) Search(parent string) *OrganizationsLocationsConnectionsSearchCall {
11437 c := &OrganizationsLocationsConnectionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11438 c.parent = parent
11439 return c
11440 }
11441
11442
11443
11444 func (c *OrganizationsLocationsConnectionsSearchCall) Filter(filter string) *OrganizationsLocationsConnectionsSearchCall {
11445 c.urlParams_.Set("filter", filter)
11446 return c
11447 }
11448
11449
11450
11451 func (c *OrganizationsLocationsConnectionsSearchCall) PageSize(pageSize int64) *OrganizationsLocationsConnectionsSearchCall {
11452 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11453 return c
11454 }
11455
11456
11457
11458
11459 func (c *OrganizationsLocationsConnectionsSearchCall) PageToken(pageToken string) *OrganizationsLocationsConnectionsSearchCall {
11460 c.urlParams_.Set("pageToken", pageToken)
11461 return c
11462 }
11463
11464
11465
11466
11467 func (c *OrganizationsLocationsConnectionsSearchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsConnectionsSearchCall {
11468 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11469 return c
11470 }
11471
11472
11473
11474
11475 func (c *OrganizationsLocationsConnectionsSearchCall) IfNoneMatch(entityTag string) *OrganizationsLocationsConnectionsSearchCall {
11476 c.ifNoneMatch_ = entityTag
11477 return c
11478 }
11479
11480
11481 func (c *OrganizationsLocationsConnectionsSearchCall) Context(ctx context.Context) *OrganizationsLocationsConnectionsSearchCall {
11482 c.ctx_ = ctx
11483 return c
11484 }
11485
11486
11487
11488 func (c *OrganizationsLocationsConnectionsSearchCall) Header() http.Header {
11489 if c.header_ == nil {
11490 c.header_ = make(http.Header)
11491 }
11492 return c.header_
11493 }
11494
11495 func (c *OrganizationsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Response, error) {
11496 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11497 if c.ifNoneMatch_ != "" {
11498 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11499 }
11500 var body io.Reader = nil
11501 c.urlParams_.Set("alt", alt)
11502 c.urlParams_.Set("prettyPrint", "false")
11503 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/connections:search")
11504 urls += "?" + c.urlParams_.Encode()
11505 req, err := http.NewRequest("GET", urls, body)
11506 if err != nil {
11507 return nil, err
11508 }
11509 req.Header = reqHeaders
11510 googleapi.Expand(req.URL, map[string]string{
11511 "parent": c.parent,
11512 })
11513 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11514 }
11515
11516
11517
11518
11519
11520
11521
11522 func (c *OrganizationsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2SearchConnectionsResponse, error) {
11523 gensupport.SetOptions(c.urlParams_, opts...)
11524 res, err := c.doRequest("json")
11525 if res != nil && res.StatusCode == http.StatusNotModified {
11526 if res.Body != nil {
11527 res.Body.Close()
11528 }
11529 return nil, gensupport.WrapError(&googleapi.Error{
11530 Code: res.StatusCode,
11531 Header: res.Header,
11532 })
11533 }
11534 if err != nil {
11535 return nil, err
11536 }
11537 defer googleapi.CloseBody(res)
11538 if err := googleapi.CheckResponse(res); err != nil {
11539 return nil, gensupport.WrapError(err)
11540 }
11541 ret := &GooglePrivacyDlpV2SearchConnectionsResponse{
11542 ServerResponse: googleapi.ServerResponse{
11543 Header: res.Header,
11544 HTTPStatusCode: res.StatusCode,
11545 },
11546 }
11547 target := &ret
11548 if err := gensupport.DecodeResponse(target, res); err != nil {
11549 return nil, err
11550 }
11551 return ret, nil
11552 }
11553
11554
11555
11556
11557 func (c *OrganizationsLocationsConnectionsSearchCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2SearchConnectionsResponse) error) error {
11558 c.ctx_ = ctx
11559 defer c.PageToken(c.urlParams_.Get("pageToken"))
11560 for {
11561 x, err := c.Do()
11562 if err != nil {
11563 return err
11564 }
11565 if err := f(x); err != nil {
11566 return err
11567 }
11568 if x.NextPageToken == "" {
11569 return nil
11570 }
11571 c.PageToken(x.NextPageToken)
11572 }
11573 }
11574
11575 type OrganizationsLocationsDeidentifyTemplatesCreateCall struct {
11576 s *Service
11577 parentid string
11578 googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
11579 urlParams_ gensupport.URLParams
11580 ctx_ context.Context
11581 header_ http.Header
11582 }
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603 func (r *OrganizationsLocationsDeidentifyTemplatesService) Create(parentid string, googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) *OrganizationsLocationsDeidentifyTemplatesCreateCall {
11604 c := &OrganizationsLocationsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11605 c.parentid = parentid
11606 c.googleprivacydlpv2createdeidentifytemplaterequest = googleprivacydlpv2createdeidentifytemplaterequest
11607 return c
11608 }
11609
11610
11611
11612
11613 func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesCreateCall {
11614 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11615 return c
11616 }
11617
11618
11619 func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesCreateCall {
11620 c.ctx_ = ctx
11621 return c
11622 }
11623
11624
11625
11626 func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Header() http.Header {
11627 if c.header_ == nil {
11628 c.header_ = make(http.Header)
11629 }
11630 return c.header_
11631 }
11632
11633 func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
11634 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11635 var body io.Reader = nil
11636 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdeidentifytemplaterequest)
11637 if err != nil {
11638 return nil, err
11639 }
11640 c.urlParams_.Set("alt", alt)
11641 c.urlParams_.Set("prettyPrint", "false")
11642 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
11643 urls += "?" + c.urlParams_.Encode()
11644 req, err := http.NewRequest("POST", urls, body)
11645 if err != nil {
11646 return nil, err
11647 }
11648 req.Header = reqHeaders
11649 googleapi.Expand(req.URL, map[string]string{
11650 "parent": c.parentid,
11651 })
11652 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11653 }
11654
11655
11656
11657
11658
11659
11660
11661 func (c *OrganizationsLocationsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
11662 gensupport.SetOptions(c.urlParams_, opts...)
11663 res, err := c.doRequest("json")
11664 if res != nil && res.StatusCode == http.StatusNotModified {
11665 if res.Body != nil {
11666 res.Body.Close()
11667 }
11668 return nil, gensupport.WrapError(&googleapi.Error{
11669 Code: res.StatusCode,
11670 Header: res.Header,
11671 })
11672 }
11673 if err != nil {
11674 return nil, err
11675 }
11676 defer googleapi.CloseBody(res)
11677 if err := googleapi.CheckResponse(res); err != nil {
11678 return nil, gensupport.WrapError(err)
11679 }
11680 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
11681 ServerResponse: googleapi.ServerResponse{
11682 Header: res.Header,
11683 HTTPStatusCode: res.StatusCode,
11684 },
11685 }
11686 target := &ret
11687 if err := gensupport.DecodeResponse(target, res); err != nil {
11688 return nil, err
11689 }
11690 return ret, nil
11691 }
11692
11693 type OrganizationsLocationsDeidentifyTemplatesDeleteCall struct {
11694 s *Service
11695 name string
11696 urlParams_ gensupport.URLParams
11697 ctx_ context.Context
11698 header_ http.Header
11699 }
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709 func (r *OrganizationsLocationsDeidentifyTemplatesService) Delete(name string) *OrganizationsLocationsDeidentifyTemplatesDeleteCall {
11710 c := &OrganizationsLocationsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11711 c.name = name
11712 return c
11713 }
11714
11715
11716
11717
11718 func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesDeleteCall {
11719 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11720 return c
11721 }
11722
11723
11724 func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesDeleteCall {
11725 c.ctx_ = ctx
11726 return c
11727 }
11728
11729
11730
11731 func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Header() http.Header {
11732 if c.header_ == nil {
11733 c.header_ = make(http.Header)
11734 }
11735 return c.header_
11736 }
11737
11738 func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
11739 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11740 var body io.Reader = nil
11741 c.urlParams_.Set("alt", alt)
11742 c.urlParams_.Set("prettyPrint", "false")
11743 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
11744 urls += "?" + c.urlParams_.Encode()
11745 req, err := http.NewRequest("DELETE", urls, body)
11746 if err != nil {
11747 return nil, err
11748 }
11749 req.Header = reqHeaders
11750 googleapi.Expand(req.URL, map[string]string{
11751 "name": c.name,
11752 })
11753 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11754 }
11755
11756
11757
11758
11759
11760
11761
11762 func (c *OrganizationsLocationsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11763 gensupport.SetOptions(c.urlParams_, opts...)
11764 res, err := c.doRequest("json")
11765 if res != nil && res.StatusCode == http.StatusNotModified {
11766 if res.Body != nil {
11767 res.Body.Close()
11768 }
11769 return nil, gensupport.WrapError(&googleapi.Error{
11770 Code: res.StatusCode,
11771 Header: res.Header,
11772 })
11773 }
11774 if err != nil {
11775 return nil, err
11776 }
11777 defer googleapi.CloseBody(res)
11778 if err := googleapi.CheckResponse(res); err != nil {
11779 return nil, gensupport.WrapError(err)
11780 }
11781 ret := &GoogleProtobufEmpty{
11782 ServerResponse: googleapi.ServerResponse{
11783 Header: res.Header,
11784 HTTPStatusCode: res.StatusCode,
11785 },
11786 }
11787 target := &ret
11788 if err := gensupport.DecodeResponse(target, res); err != nil {
11789 return nil, err
11790 }
11791 return ret, nil
11792 }
11793
11794 type OrganizationsLocationsDeidentifyTemplatesGetCall struct {
11795 s *Service
11796 name string
11797 urlParams_ gensupport.URLParams
11798 ifNoneMatch_ string
11799 ctx_ context.Context
11800 header_ http.Header
11801 }
11802
11803
11804
11805
11806
11807
11808
11809
11810 func (r *OrganizationsLocationsDeidentifyTemplatesService) Get(name string) *OrganizationsLocationsDeidentifyTemplatesGetCall {
11811 c := &OrganizationsLocationsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11812 c.name = name
11813 return c
11814 }
11815
11816
11817
11818
11819 func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesGetCall {
11820 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11821 return c
11822 }
11823
11824
11825
11826
11827 func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDeidentifyTemplatesGetCall {
11828 c.ifNoneMatch_ = entityTag
11829 return c
11830 }
11831
11832
11833 func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesGetCall {
11834 c.ctx_ = ctx
11835 return c
11836 }
11837
11838
11839
11840 func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Header() http.Header {
11841 if c.header_ == nil {
11842 c.header_ = make(http.Header)
11843 }
11844 return c.header_
11845 }
11846
11847 func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
11848 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11849 if c.ifNoneMatch_ != "" {
11850 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11851 }
11852 var body io.Reader = nil
11853 c.urlParams_.Set("alt", alt)
11854 c.urlParams_.Set("prettyPrint", "false")
11855 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
11856 urls += "?" + c.urlParams_.Encode()
11857 req, err := http.NewRequest("GET", urls, body)
11858 if err != nil {
11859 return nil, err
11860 }
11861 req.Header = reqHeaders
11862 googleapi.Expand(req.URL, map[string]string{
11863 "name": c.name,
11864 })
11865 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11866 }
11867
11868
11869
11870
11871
11872
11873
11874 func (c *OrganizationsLocationsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
11875 gensupport.SetOptions(c.urlParams_, opts...)
11876 res, err := c.doRequest("json")
11877 if res != nil && res.StatusCode == http.StatusNotModified {
11878 if res.Body != nil {
11879 res.Body.Close()
11880 }
11881 return nil, gensupport.WrapError(&googleapi.Error{
11882 Code: res.StatusCode,
11883 Header: res.Header,
11884 })
11885 }
11886 if err != nil {
11887 return nil, err
11888 }
11889 defer googleapi.CloseBody(res)
11890 if err := googleapi.CheckResponse(res); err != nil {
11891 return nil, gensupport.WrapError(err)
11892 }
11893 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
11894 ServerResponse: googleapi.ServerResponse{
11895 Header: res.Header,
11896 HTTPStatusCode: res.StatusCode,
11897 },
11898 }
11899 target := &ret
11900 if err := gensupport.DecodeResponse(target, res); err != nil {
11901 return nil, err
11902 }
11903 return ret, nil
11904 }
11905
11906 type OrganizationsLocationsDeidentifyTemplatesListCall struct {
11907 s *Service
11908 parentid string
11909 urlParams_ gensupport.URLParams
11910 ifNoneMatch_ string
11911 ctx_ context.Context
11912 header_ http.Header
11913 }
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933 func (r *OrganizationsLocationsDeidentifyTemplatesService) List(parentid string) *OrganizationsLocationsDeidentifyTemplatesListCall {
11934 c := &OrganizationsLocationsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11935 c.parentid = parentid
11936 return c
11937 }
11938
11939
11940
11941 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) LocationId(locationId string) *OrganizationsLocationsDeidentifyTemplatesListCall {
11942 c.urlParams_.Set("locationId", locationId)
11943 return c
11944 }
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) OrderBy(orderBy string) *OrganizationsLocationsDeidentifyTemplatesListCall {
11955 c.urlParams_.Set("orderBy", orderBy)
11956 return c
11957 }
11958
11959
11960
11961
11962 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) PageSize(pageSize int64) *OrganizationsLocationsDeidentifyTemplatesListCall {
11963 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11964 return c
11965 }
11966
11967
11968
11969 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) PageToken(pageToken string) *OrganizationsLocationsDeidentifyTemplatesListCall {
11970 c.urlParams_.Set("pageToken", pageToken)
11971 return c
11972 }
11973
11974
11975
11976
11977 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesListCall {
11978 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11979 return c
11980 }
11981
11982
11983
11984
11985 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDeidentifyTemplatesListCall {
11986 c.ifNoneMatch_ = entityTag
11987 return c
11988 }
11989
11990
11991 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesListCall {
11992 c.ctx_ = ctx
11993 return c
11994 }
11995
11996
11997
11998 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Header() http.Header {
11999 if c.header_ == nil {
12000 c.header_ = make(http.Header)
12001 }
12002 return c.header_
12003 }
12004
12005 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
12006 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12007 if c.ifNoneMatch_ != "" {
12008 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12009 }
12010 var body io.Reader = nil
12011 c.urlParams_.Set("alt", alt)
12012 c.urlParams_.Set("prettyPrint", "false")
12013 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
12014 urls += "?" + c.urlParams_.Encode()
12015 req, err := http.NewRequest("GET", urls, body)
12016 if err != nil {
12017 return nil, err
12018 }
12019 req.Header = reqHeaders
12020 googleapi.Expand(req.URL, map[string]string{
12021 "parent": c.parentid,
12022 })
12023 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12024 }
12025
12026
12027
12028
12029
12030
12031
12032 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse, error) {
12033 gensupport.SetOptions(c.urlParams_, opts...)
12034 res, err := c.doRequest("json")
12035 if res != nil && res.StatusCode == http.StatusNotModified {
12036 if res.Body != nil {
12037 res.Body.Close()
12038 }
12039 return nil, gensupport.WrapError(&googleapi.Error{
12040 Code: res.StatusCode,
12041 Header: res.Header,
12042 })
12043 }
12044 if err != nil {
12045 return nil, err
12046 }
12047 defer googleapi.CloseBody(res)
12048 if err := googleapi.CheckResponse(res); err != nil {
12049 return nil, gensupport.WrapError(err)
12050 }
12051 ret := &GooglePrivacyDlpV2ListDeidentifyTemplatesResponse{
12052 ServerResponse: googleapi.ServerResponse{
12053 Header: res.Header,
12054 HTTPStatusCode: res.StatusCode,
12055 },
12056 }
12057 target := &ret
12058 if err := gensupport.DecodeResponse(target, res); err != nil {
12059 return nil, err
12060 }
12061 return ret, nil
12062 }
12063
12064
12065
12066
12067 func (c *OrganizationsLocationsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) error) error {
12068 c.ctx_ = ctx
12069 defer c.PageToken(c.urlParams_.Get("pageToken"))
12070 for {
12071 x, err := c.Do()
12072 if err != nil {
12073 return err
12074 }
12075 if err := f(x); err != nil {
12076 return err
12077 }
12078 if x.NextPageToken == "" {
12079 return nil
12080 }
12081 c.PageToken(x.NextPageToken)
12082 }
12083 }
12084
12085 type OrganizationsLocationsDeidentifyTemplatesPatchCall struct {
12086 s *Service
12087 name string
12088 googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
12089 urlParams_ gensupport.URLParams
12090 ctx_ context.Context
12091 header_ http.Header
12092 }
12093
12094
12095
12096
12097
12098
12099
12100
12101 func (r *OrganizationsLocationsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) *OrganizationsLocationsDeidentifyTemplatesPatchCall {
12102 c := &OrganizationsLocationsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12103 c.name = name
12104 c.googleprivacydlpv2updatedeidentifytemplaterequest = googleprivacydlpv2updatedeidentifytemplaterequest
12105 return c
12106 }
12107
12108
12109
12110
12111 func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDeidentifyTemplatesPatchCall {
12112 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12113 return c
12114 }
12115
12116
12117 func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *OrganizationsLocationsDeidentifyTemplatesPatchCall {
12118 c.ctx_ = ctx
12119 return c
12120 }
12121
12122
12123
12124 func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Header() http.Header {
12125 if c.header_ == nil {
12126 c.header_ = make(http.Header)
12127 }
12128 return c.header_
12129 }
12130
12131 func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
12132 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12133 var body io.Reader = nil
12134 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatedeidentifytemplaterequest)
12135 if err != nil {
12136 return nil, err
12137 }
12138 c.urlParams_.Set("alt", alt)
12139 c.urlParams_.Set("prettyPrint", "false")
12140 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
12141 urls += "?" + c.urlParams_.Encode()
12142 req, err := http.NewRequest("PATCH", urls, body)
12143 if err != nil {
12144 return nil, err
12145 }
12146 req.Header = reqHeaders
12147 googleapi.Expand(req.URL, map[string]string{
12148 "name": c.name,
12149 })
12150 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12151 }
12152
12153
12154
12155
12156
12157
12158
12159 func (c *OrganizationsLocationsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
12160 gensupport.SetOptions(c.urlParams_, opts...)
12161 res, err := c.doRequest("json")
12162 if res != nil && res.StatusCode == http.StatusNotModified {
12163 if res.Body != nil {
12164 res.Body.Close()
12165 }
12166 return nil, gensupport.WrapError(&googleapi.Error{
12167 Code: res.StatusCode,
12168 Header: res.Header,
12169 })
12170 }
12171 if err != nil {
12172 return nil, err
12173 }
12174 defer googleapi.CloseBody(res)
12175 if err := googleapi.CheckResponse(res); err != nil {
12176 return nil, gensupport.WrapError(err)
12177 }
12178 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
12179 ServerResponse: googleapi.ServerResponse{
12180 Header: res.Header,
12181 HTTPStatusCode: res.StatusCode,
12182 },
12183 }
12184 target := &ret
12185 if err := gensupport.DecodeResponse(target, res); err != nil {
12186 return nil, err
12187 }
12188 return ret, nil
12189 }
12190
12191 type OrganizationsLocationsDiscoveryConfigsCreateCall struct {
12192 s *Service
12193 parentid string
12194 googleprivacydlpv2creatediscoveryconfigrequest *GooglePrivacyDlpV2CreateDiscoveryConfigRequest
12195 urlParams_ gensupport.URLParams
12196 ctx_ context.Context
12197 header_ http.Header
12198 }
12199
12200
12201
12202
12203
12204
12205
12206
12207 func (r *OrganizationsLocationsDiscoveryConfigsService) Create(parentid string, googleprivacydlpv2creatediscoveryconfigrequest *GooglePrivacyDlpV2CreateDiscoveryConfigRequest) *OrganizationsLocationsDiscoveryConfigsCreateCall {
12208 c := &OrganizationsLocationsDiscoveryConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12209 c.parentid = parentid
12210 c.googleprivacydlpv2creatediscoveryconfigrequest = googleprivacydlpv2creatediscoveryconfigrequest
12211 return c
12212 }
12213
12214
12215
12216
12217 func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsCreateCall {
12218 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12219 return c
12220 }
12221
12222
12223 func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsCreateCall {
12224 c.ctx_ = ctx
12225 return c
12226 }
12227
12228
12229
12230 func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) Header() http.Header {
12231 if c.header_ == nil {
12232 c.header_ = make(http.Header)
12233 }
12234 return c.header_
12235 }
12236
12237 func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
12238 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12239 var body io.Reader = nil
12240 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2creatediscoveryconfigrequest)
12241 if err != nil {
12242 return nil, err
12243 }
12244 c.urlParams_.Set("alt", alt)
12245 c.urlParams_.Set("prettyPrint", "false")
12246 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/discoveryConfigs")
12247 urls += "?" + c.urlParams_.Encode()
12248 req, err := http.NewRequest("POST", urls, body)
12249 if err != nil {
12250 return nil, err
12251 }
12252 req.Header = reqHeaders
12253 googleapi.Expand(req.URL, map[string]string{
12254 "parent": c.parentid,
12255 })
12256 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12257 }
12258
12259
12260
12261
12262
12263
12264
12265 func (c *OrganizationsLocationsDiscoveryConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
12266 gensupport.SetOptions(c.urlParams_, opts...)
12267 res, err := c.doRequest("json")
12268 if res != nil && res.StatusCode == http.StatusNotModified {
12269 if res.Body != nil {
12270 res.Body.Close()
12271 }
12272 return nil, gensupport.WrapError(&googleapi.Error{
12273 Code: res.StatusCode,
12274 Header: res.Header,
12275 })
12276 }
12277 if err != nil {
12278 return nil, err
12279 }
12280 defer googleapi.CloseBody(res)
12281 if err := googleapi.CheckResponse(res); err != nil {
12282 return nil, gensupport.WrapError(err)
12283 }
12284 ret := &GooglePrivacyDlpV2DiscoveryConfig{
12285 ServerResponse: googleapi.ServerResponse{
12286 Header: res.Header,
12287 HTTPStatusCode: res.StatusCode,
12288 },
12289 }
12290 target := &ret
12291 if err := gensupport.DecodeResponse(target, res); err != nil {
12292 return nil, err
12293 }
12294 return ret, nil
12295 }
12296
12297 type OrganizationsLocationsDiscoveryConfigsDeleteCall struct {
12298 s *Service
12299 name string
12300 urlParams_ gensupport.URLParams
12301 ctx_ context.Context
12302 header_ http.Header
12303 }
12304
12305
12306
12307
12308
12309 func (r *OrganizationsLocationsDiscoveryConfigsService) Delete(name string) *OrganizationsLocationsDiscoveryConfigsDeleteCall {
12310 c := &OrganizationsLocationsDiscoveryConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12311 c.name = name
12312 return c
12313 }
12314
12315
12316
12317
12318 func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsDeleteCall {
12319 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12320 return c
12321 }
12322
12323
12324 func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsDeleteCall {
12325 c.ctx_ = ctx
12326 return c
12327 }
12328
12329
12330
12331 func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) Header() http.Header {
12332 if c.header_ == nil {
12333 c.header_ = make(http.Header)
12334 }
12335 return c.header_
12336 }
12337
12338 func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
12339 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12340 var body io.Reader = nil
12341 c.urlParams_.Set("alt", alt)
12342 c.urlParams_.Set("prettyPrint", "false")
12343 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
12344 urls += "?" + c.urlParams_.Encode()
12345 req, err := http.NewRequest("DELETE", urls, body)
12346 if err != nil {
12347 return nil, err
12348 }
12349 req.Header = reqHeaders
12350 googleapi.Expand(req.URL, map[string]string{
12351 "name": c.name,
12352 })
12353 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12354 }
12355
12356
12357
12358
12359
12360
12361
12362 func (c *OrganizationsLocationsDiscoveryConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
12363 gensupport.SetOptions(c.urlParams_, opts...)
12364 res, err := c.doRequest("json")
12365 if res != nil && res.StatusCode == http.StatusNotModified {
12366 if res.Body != nil {
12367 res.Body.Close()
12368 }
12369 return nil, gensupport.WrapError(&googleapi.Error{
12370 Code: res.StatusCode,
12371 Header: res.Header,
12372 })
12373 }
12374 if err != nil {
12375 return nil, err
12376 }
12377 defer googleapi.CloseBody(res)
12378 if err := googleapi.CheckResponse(res); err != nil {
12379 return nil, gensupport.WrapError(err)
12380 }
12381 ret := &GoogleProtobufEmpty{
12382 ServerResponse: googleapi.ServerResponse{
12383 Header: res.Header,
12384 HTTPStatusCode: res.StatusCode,
12385 },
12386 }
12387 target := &ret
12388 if err := gensupport.DecodeResponse(target, res); err != nil {
12389 return nil, err
12390 }
12391 return ret, nil
12392 }
12393
12394 type OrganizationsLocationsDiscoveryConfigsGetCall struct {
12395 s *Service
12396 name string
12397 urlParams_ gensupport.URLParams
12398 ifNoneMatch_ string
12399 ctx_ context.Context
12400 header_ http.Header
12401 }
12402
12403
12404
12405
12406
12407 func (r *OrganizationsLocationsDiscoveryConfigsService) Get(name string) *OrganizationsLocationsDiscoveryConfigsGetCall {
12408 c := &OrganizationsLocationsDiscoveryConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12409 c.name = name
12410 return c
12411 }
12412
12413
12414
12415
12416 func (c *OrganizationsLocationsDiscoveryConfigsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsGetCall {
12417 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12418 return c
12419 }
12420
12421
12422
12423
12424 func (c *OrganizationsLocationsDiscoveryConfigsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDiscoveryConfigsGetCall {
12425 c.ifNoneMatch_ = entityTag
12426 return c
12427 }
12428
12429
12430 func (c *OrganizationsLocationsDiscoveryConfigsGetCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsGetCall {
12431 c.ctx_ = ctx
12432 return c
12433 }
12434
12435
12436
12437 func (c *OrganizationsLocationsDiscoveryConfigsGetCall) Header() http.Header {
12438 if c.header_ == nil {
12439 c.header_ = make(http.Header)
12440 }
12441 return c.header_
12442 }
12443
12444 func (c *OrganizationsLocationsDiscoveryConfigsGetCall) doRequest(alt string) (*http.Response, error) {
12445 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12446 if c.ifNoneMatch_ != "" {
12447 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12448 }
12449 var body io.Reader = nil
12450 c.urlParams_.Set("alt", alt)
12451 c.urlParams_.Set("prettyPrint", "false")
12452 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
12453 urls += "?" + c.urlParams_.Encode()
12454 req, err := http.NewRequest("GET", urls, body)
12455 if err != nil {
12456 return nil, err
12457 }
12458 req.Header = reqHeaders
12459 googleapi.Expand(req.URL, map[string]string{
12460 "name": c.name,
12461 })
12462 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12463 }
12464
12465
12466
12467
12468
12469
12470
12471 func (c *OrganizationsLocationsDiscoveryConfigsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
12472 gensupport.SetOptions(c.urlParams_, opts...)
12473 res, err := c.doRequest("json")
12474 if res != nil && res.StatusCode == http.StatusNotModified {
12475 if res.Body != nil {
12476 res.Body.Close()
12477 }
12478 return nil, gensupport.WrapError(&googleapi.Error{
12479 Code: res.StatusCode,
12480 Header: res.Header,
12481 })
12482 }
12483 if err != nil {
12484 return nil, err
12485 }
12486 defer googleapi.CloseBody(res)
12487 if err := googleapi.CheckResponse(res); err != nil {
12488 return nil, gensupport.WrapError(err)
12489 }
12490 ret := &GooglePrivacyDlpV2DiscoveryConfig{
12491 ServerResponse: googleapi.ServerResponse{
12492 Header: res.Header,
12493 HTTPStatusCode: res.StatusCode,
12494 },
12495 }
12496 target := &ret
12497 if err := gensupport.DecodeResponse(target, res); err != nil {
12498 return nil, err
12499 }
12500 return ret, nil
12501 }
12502
12503 type OrganizationsLocationsDiscoveryConfigsListCall struct {
12504 s *Service
12505 parentid string
12506 urlParams_ gensupport.URLParams
12507 ifNoneMatch_ string
12508 ctx_ context.Context
12509 header_ http.Header
12510 }
12511
12512
12513
12514
12515
12516
12517
12518
12519 func (r *OrganizationsLocationsDiscoveryConfigsService) List(parentid string) *OrganizationsLocationsDiscoveryConfigsListCall {
12520 c := &OrganizationsLocationsDiscoveryConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12521 c.parentid = parentid
12522 return c
12523 }
12524
12525
12526
12527
12528
12529
12530
12531
12532 func (c *OrganizationsLocationsDiscoveryConfigsListCall) OrderBy(orderBy string) *OrganizationsLocationsDiscoveryConfigsListCall {
12533 c.urlParams_.Set("orderBy", orderBy)
12534 return c
12535 }
12536
12537
12538
12539 func (c *OrganizationsLocationsDiscoveryConfigsListCall) PageSize(pageSize int64) *OrganizationsLocationsDiscoveryConfigsListCall {
12540 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12541 return c
12542 }
12543
12544
12545
12546
12547 func (c *OrganizationsLocationsDiscoveryConfigsListCall) PageToken(pageToken string) *OrganizationsLocationsDiscoveryConfigsListCall {
12548 c.urlParams_.Set("pageToken", pageToken)
12549 return c
12550 }
12551
12552
12553
12554
12555 func (c *OrganizationsLocationsDiscoveryConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsListCall {
12556 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12557 return c
12558 }
12559
12560
12561
12562
12563 func (c *OrganizationsLocationsDiscoveryConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDiscoveryConfigsListCall {
12564 c.ifNoneMatch_ = entityTag
12565 return c
12566 }
12567
12568
12569 func (c *OrganizationsLocationsDiscoveryConfigsListCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsListCall {
12570 c.ctx_ = ctx
12571 return c
12572 }
12573
12574
12575
12576 func (c *OrganizationsLocationsDiscoveryConfigsListCall) Header() http.Header {
12577 if c.header_ == nil {
12578 c.header_ = make(http.Header)
12579 }
12580 return c.header_
12581 }
12582
12583 func (c *OrganizationsLocationsDiscoveryConfigsListCall) doRequest(alt string) (*http.Response, error) {
12584 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12585 if c.ifNoneMatch_ != "" {
12586 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12587 }
12588 var body io.Reader = nil
12589 c.urlParams_.Set("alt", alt)
12590 c.urlParams_.Set("prettyPrint", "false")
12591 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/discoveryConfigs")
12592 urls += "?" + c.urlParams_.Encode()
12593 req, err := http.NewRequest("GET", urls, body)
12594 if err != nil {
12595 return nil, err
12596 }
12597 req.Header = reqHeaders
12598 googleapi.Expand(req.URL, map[string]string{
12599 "parent": c.parentid,
12600 })
12601 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12602 }
12603
12604
12605
12606
12607
12608
12609
12610 func (c *OrganizationsLocationsDiscoveryConfigsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDiscoveryConfigsResponse, error) {
12611 gensupport.SetOptions(c.urlParams_, opts...)
12612 res, err := c.doRequest("json")
12613 if res != nil && res.StatusCode == http.StatusNotModified {
12614 if res.Body != nil {
12615 res.Body.Close()
12616 }
12617 return nil, gensupport.WrapError(&googleapi.Error{
12618 Code: res.StatusCode,
12619 Header: res.Header,
12620 })
12621 }
12622 if err != nil {
12623 return nil, err
12624 }
12625 defer googleapi.CloseBody(res)
12626 if err := googleapi.CheckResponse(res); err != nil {
12627 return nil, gensupport.WrapError(err)
12628 }
12629 ret := &GooglePrivacyDlpV2ListDiscoveryConfigsResponse{
12630 ServerResponse: googleapi.ServerResponse{
12631 Header: res.Header,
12632 HTTPStatusCode: res.StatusCode,
12633 },
12634 }
12635 target := &ret
12636 if err := gensupport.DecodeResponse(target, res); err != nil {
12637 return nil, err
12638 }
12639 return ret, nil
12640 }
12641
12642
12643
12644
12645 func (c *OrganizationsLocationsDiscoveryConfigsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDiscoveryConfigsResponse) error) error {
12646 c.ctx_ = ctx
12647 defer c.PageToken(c.urlParams_.Get("pageToken"))
12648 for {
12649 x, err := c.Do()
12650 if err != nil {
12651 return err
12652 }
12653 if err := f(x); err != nil {
12654 return err
12655 }
12656 if x.NextPageToken == "" {
12657 return nil
12658 }
12659 c.PageToken(x.NextPageToken)
12660 }
12661 }
12662
12663 type OrganizationsLocationsDiscoveryConfigsPatchCall struct {
12664 s *Service
12665 name string
12666 googleprivacydlpv2updatediscoveryconfigrequest *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest
12667 urlParams_ gensupport.URLParams
12668 ctx_ context.Context
12669 header_ http.Header
12670 }
12671
12672
12673
12674
12675
12676 func (r *OrganizationsLocationsDiscoveryConfigsService) Patch(name string, googleprivacydlpv2updatediscoveryconfigrequest *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest) *OrganizationsLocationsDiscoveryConfigsPatchCall {
12677 c := &OrganizationsLocationsDiscoveryConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12678 c.name = name
12679 c.googleprivacydlpv2updatediscoveryconfigrequest = googleprivacydlpv2updatediscoveryconfigrequest
12680 return c
12681 }
12682
12683
12684
12685
12686 func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDiscoveryConfigsPatchCall {
12687 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12688 return c
12689 }
12690
12691
12692 func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) Context(ctx context.Context) *OrganizationsLocationsDiscoveryConfigsPatchCall {
12693 c.ctx_ = ctx
12694 return c
12695 }
12696
12697
12698
12699 func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) Header() http.Header {
12700 if c.header_ == nil {
12701 c.header_ = make(http.Header)
12702 }
12703 return c.header_
12704 }
12705
12706 func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
12707 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12708 var body io.Reader = nil
12709 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatediscoveryconfigrequest)
12710 if err != nil {
12711 return nil, err
12712 }
12713 c.urlParams_.Set("alt", alt)
12714 c.urlParams_.Set("prettyPrint", "false")
12715 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
12716 urls += "?" + c.urlParams_.Encode()
12717 req, err := http.NewRequest("PATCH", urls, body)
12718 if err != nil {
12719 return nil, err
12720 }
12721 req.Header = reqHeaders
12722 googleapi.Expand(req.URL, map[string]string{
12723 "name": c.name,
12724 })
12725 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12726 }
12727
12728
12729
12730
12731
12732
12733
12734 func (c *OrganizationsLocationsDiscoveryConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
12735 gensupport.SetOptions(c.urlParams_, opts...)
12736 res, err := c.doRequest("json")
12737 if res != nil && res.StatusCode == http.StatusNotModified {
12738 if res.Body != nil {
12739 res.Body.Close()
12740 }
12741 return nil, gensupport.WrapError(&googleapi.Error{
12742 Code: res.StatusCode,
12743 Header: res.Header,
12744 })
12745 }
12746 if err != nil {
12747 return nil, err
12748 }
12749 defer googleapi.CloseBody(res)
12750 if err := googleapi.CheckResponse(res); err != nil {
12751 return nil, gensupport.WrapError(err)
12752 }
12753 ret := &GooglePrivacyDlpV2DiscoveryConfig{
12754 ServerResponse: googleapi.ServerResponse{
12755 Header: res.Header,
12756 HTTPStatusCode: res.StatusCode,
12757 },
12758 }
12759 target := &ret
12760 if err := gensupport.DecodeResponse(target, res); err != nil {
12761 return nil, err
12762 }
12763 return ret, nil
12764 }
12765
12766 type OrganizationsLocationsDlpJobsListCall struct {
12767 s *Service
12768 parentid string
12769 urlParams_ gensupport.URLParams
12770 ifNoneMatch_ string
12771 ctx_ context.Context
12772 header_ http.Header
12773 }
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791 func (r *OrganizationsLocationsDlpJobsService) List(parentid string) *OrganizationsLocationsDlpJobsListCall {
12792 c := &OrganizationsLocationsDlpJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12793 c.parentid = parentid
12794 return c
12795 }
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814 func (c *OrganizationsLocationsDlpJobsListCall) Filter(filter string) *OrganizationsLocationsDlpJobsListCall {
12815 c.urlParams_.Set("filter", filter)
12816 return c
12817 }
12818
12819
12820
12821 func (c *OrganizationsLocationsDlpJobsListCall) LocationId(locationId string) *OrganizationsLocationsDlpJobsListCall {
12822 c.urlParams_.Set("locationId", locationId)
12823 return c
12824 }
12825
12826
12827
12828
12829
12830
12831
12832
12833 func (c *OrganizationsLocationsDlpJobsListCall) OrderBy(orderBy string) *OrganizationsLocationsDlpJobsListCall {
12834 c.urlParams_.Set("orderBy", orderBy)
12835 return c
12836 }
12837
12838
12839
12840 func (c *OrganizationsLocationsDlpJobsListCall) PageSize(pageSize int64) *OrganizationsLocationsDlpJobsListCall {
12841 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12842 return c
12843 }
12844
12845
12846
12847 func (c *OrganizationsLocationsDlpJobsListCall) PageToken(pageToken string) *OrganizationsLocationsDlpJobsListCall {
12848 c.urlParams_.Set("pageToken", pageToken)
12849 return c
12850 }
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860 func (c *OrganizationsLocationsDlpJobsListCall) Type(type_ string) *OrganizationsLocationsDlpJobsListCall {
12861 c.urlParams_.Set("type", type_)
12862 return c
12863 }
12864
12865
12866
12867
12868 func (c *OrganizationsLocationsDlpJobsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsDlpJobsListCall {
12869 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12870 return c
12871 }
12872
12873
12874
12875
12876 func (c *OrganizationsLocationsDlpJobsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsDlpJobsListCall {
12877 c.ifNoneMatch_ = entityTag
12878 return c
12879 }
12880
12881
12882 func (c *OrganizationsLocationsDlpJobsListCall) Context(ctx context.Context) *OrganizationsLocationsDlpJobsListCall {
12883 c.ctx_ = ctx
12884 return c
12885 }
12886
12887
12888
12889 func (c *OrganizationsLocationsDlpJobsListCall) Header() http.Header {
12890 if c.header_ == nil {
12891 c.header_ = make(http.Header)
12892 }
12893 return c.header_
12894 }
12895
12896 func (c *OrganizationsLocationsDlpJobsListCall) doRequest(alt string) (*http.Response, error) {
12897 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12898 if c.ifNoneMatch_ != "" {
12899 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12900 }
12901 var body io.Reader = nil
12902 c.urlParams_.Set("alt", alt)
12903 c.urlParams_.Set("prettyPrint", "false")
12904 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
12905 urls += "?" + c.urlParams_.Encode()
12906 req, err := http.NewRequest("GET", urls, body)
12907 if err != nil {
12908 return nil, err
12909 }
12910 req.Header = reqHeaders
12911 googleapi.Expand(req.URL, map[string]string{
12912 "parent": c.parentid,
12913 })
12914 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12915 }
12916
12917
12918
12919
12920
12921
12922
12923 func (c *OrganizationsLocationsDlpJobsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDlpJobsResponse, error) {
12924 gensupport.SetOptions(c.urlParams_, opts...)
12925 res, err := c.doRequest("json")
12926 if res != nil && res.StatusCode == http.StatusNotModified {
12927 if res.Body != nil {
12928 res.Body.Close()
12929 }
12930 return nil, gensupport.WrapError(&googleapi.Error{
12931 Code: res.StatusCode,
12932 Header: res.Header,
12933 })
12934 }
12935 if err != nil {
12936 return nil, err
12937 }
12938 defer googleapi.CloseBody(res)
12939 if err := googleapi.CheckResponse(res); err != nil {
12940 return nil, gensupport.WrapError(err)
12941 }
12942 ret := &GooglePrivacyDlpV2ListDlpJobsResponse{
12943 ServerResponse: googleapi.ServerResponse{
12944 Header: res.Header,
12945 HTTPStatusCode: res.StatusCode,
12946 },
12947 }
12948 target := &ret
12949 if err := gensupport.DecodeResponse(target, res); err != nil {
12950 return nil, err
12951 }
12952 return ret, nil
12953 }
12954
12955
12956
12957
12958 func (c *OrganizationsLocationsDlpJobsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDlpJobsResponse) error) error {
12959 c.ctx_ = ctx
12960 defer c.PageToken(c.urlParams_.Get("pageToken"))
12961 for {
12962 x, err := c.Do()
12963 if err != nil {
12964 return err
12965 }
12966 if err := f(x); err != nil {
12967 return err
12968 }
12969 if x.NextPageToken == "" {
12970 return nil
12971 }
12972 c.PageToken(x.NextPageToken)
12973 }
12974 }
12975
12976 type OrganizationsLocationsInspectTemplatesCreateCall struct {
12977 s *Service
12978 parentid string
12979 googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest
12980 urlParams_ gensupport.URLParams
12981 ctx_ context.Context
12982 header_ http.Header
12983 }
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004 func (r *OrganizationsLocationsInspectTemplatesService) Create(parentid string, googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest) *OrganizationsLocationsInspectTemplatesCreateCall {
13005 c := &OrganizationsLocationsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13006 c.parentid = parentid
13007 c.googleprivacydlpv2createinspecttemplaterequest = googleprivacydlpv2createinspecttemplaterequest
13008 return c
13009 }
13010
13011
13012
13013
13014 func (c *OrganizationsLocationsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesCreateCall {
13015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13016 return c
13017 }
13018
13019
13020 func (c *OrganizationsLocationsInspectTemplatesCreateCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesCreateCall {
13021 c.ctx_ = ctx
13022 return c
13023 }
13024
13025
13026
13027 func (c *OrganizationsLocationsInspectTemplatesCreateCall) Header() http.Header {
13028 if c.header_ == nil {
13029 c.header_ = make(http.Header)
13030 }
13031 return c.header_
13032 }
13033
13034 func (c *OrganizationsLocationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
13035 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13036 var body io.Reader = nil
13037 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createinspecttemplaterequest)
13038 if err != nil {
13039 return nil, err
13040 }
13041 c.urlParams_.Set("alt", alt)
13042 c.urlParams_.Set("prettyPrint", "false")
13043 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
13044 urls += "?" + c.urlParams_.Encode()
13045 req, err := http.NewRequest("POST", urls, body)
13046 if err != nil {
13047 return nil, err
13048 }
13049 req.Header = reqHeaders
13050 googleapi.Expand(req.URL, map[string]string{
13051 "parent": c.parentid,
13052 })
13053 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13054 }
13055
13056
13057
13058
13059
13060
13061
13062 func (c *OrganizationsLocationsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
13063 gensupport.SetOptions(c.urlParams_, opts...)
13064 res, err := c.doRequest("json")
13065 if res != nil && res.StatusCode == http.StatusNotModified {
13066 if res.Body != nil {
13067 res.Body.Close()
13068 }
13069 return nil, gensupport.WrapError(&googleapi.Error{
13070 Code: res.StatusCode,
13071 Header: res.Header,
13072 })
13073 }
13074 if err != nil {
13075 return nil, err
13076 }
13077 defer googleapi.CloseBody(res)
13078 if err := googleapi.CheckResponse(res); err != nil {
13079 return nil, gensupport.WrapError(err)
13080 }
13081 ret := &GooglePrivacyDlpV2InspectTemplate{
13082 ServerResponse: googleapi.ServerResponse{
13083 Header: res.Header,
13084 HTTPStatusCode: res.StatusCode,
13085 },
13086 }
13087 target := &ret
13088 if err := gensupport.DecodeResponse(target, res); err != nil {
13089 return nil, err
13090 }
13091 return ret, nil
13092 }
13093
13094 type OrganizationsLocationsInspectTemplatesDeleteCall struct {
13095 s *Service
13096 name string
13097 urlParams_ gensupport.URLParams
13098 ctx_ context.Context
13099 header_ http.Header
13100 }
13101
13102
13103
13104
13105
13106
13107
13108
13109 func (r *OrganizationsLocationsInspectTemplatesService) Delete(name string) *OrganizationsLocationsInspectTemplatesDeleteCall {
13110 c := &OrganizationsLocationsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13111 c.name = name
13112 return c
13113 }
13114
13115
13116
13117
13118 func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesDeleteCall {
13119 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13120 return c
13121 }
13122
13123
13124 func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesDeleteCall {
13125 c.ctx_ = ctx
13126 return c
13127 }
13128
13129
13130
13131 func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Header() http.Header {
13132 if c.header_ == nil {
13133 c.header_ = make(http.Header)
13134 }
13135 return c.header_
13136 }
13137
13138 func (c *OrganizationsLocationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
13139 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13140 var body io.Reader = nil
13141 c.urlParams_.Set("alt", alt)
13142 c.urlParams_.Set("prettyPrint", "false")
13143 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
13144 urls += "?" + c.urlParams_.Encode()
13145 req, err := http.NewRequest("DELETE", urls, body)
13146 if err != nil {
13147 return nil, err
13148 }
13149 req.Header = reqHeaders
13150 googleapi.Expand(req.URL, map[string]string{
13151 "name": c.name,
13152 })
13153 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13154 }
13155
13156
13157
13158
13159
13160
13161
13162 func (c *OrganizationsLocationsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
13163 gensupport.SetOptions(c.urlParams_, opts...)
13164 res, err := c.doRequest("json")
13165 if res != nil && res.StatusCode == http.StatusNotModified {
13166 if res.Body != nil {
13167 res.Body.Close()
13168 }
13169 return nil, gensupport.WrapError(&googleapi.Error{
13170 Code: res.StatusCode,
13171 Header: res.Header,
13172 })
13173 }
13174 if err != nil {
13175 return nil, err
13176 }
13177 defer googleapi.CloseBody(res)
13178 if err := googleapi.CheckResponse(res); err != nil {
13179 return nil, gensupport.WrapError(err)
13180 }
13181 ret := &GoogleProtobufEmpty{
13182 ServerResponse: googleapi.ServerResponse{
13183 Header: res.Header,
13184 HTTPStatusCode: res.StatusCode,
13185 },
13186 }
13187 target := &ret
13188 if err := gensupport.DecodeResponse(target, res); err != nil {
13189 return nil, err
13190 }
13191 return ret, nil
13192 }
13193
13194 type OrganizationsLocationsInspectTemplatesGetCall struct {
13195 s *Service
13196 name string
13197 urlParams_ gensupport.URLParams
13198 ifNoneMatch_ string
13199 ctx_ context.Context
13200 header_ http.Header
13201 }
13202
13203
13204
13205
13206
13207
13208
13209
13210 func (r *OrganizationsLocationsInspectTemplatesService) Get(name string) *OrganizationsLocationsInspectTemplatesGetCall {
13211 c := &OrganizationsLocationsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13212 c.name = name
13213 return c
13214 }
13215
13216
13217
13218
13219 func (c *OrganizationsLocationsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesGetCall {
13220 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13221 return c
13222 }
13223
13224
13225
13226
13227 func (c *OrganizationsLocationsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInspectTemplatesGetCall {
13228 c.ifNoneMatch_ = entityTag
13229 return c
13230 }
13231
13232
13233 func (c *OrganizationsLocationsInspectTemplatesGetCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesGetCall {
13234 c.ctx_ = ctx
13235 return c
13236 }
13237
13238
13239
13240 func (c *OrganizationsLocationsInspectTemplatesGetCall) Header() http.Header {
13241 if c.header_ == nil {
13242 c.header_ = make(http.Header)
13243 }
13244 return c.header_
13245 }
13246
13247 func (c *OrganizationsLocationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
13248 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13249 if c.ifNoneMatch_ != "" {
13250 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13251 }
13252 var body io.Reader = nil
13253 c.urlParams_.Set("alt", alt)
13254 c.urlParams_.Set("prettyPrint", "false")
13255 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
13256 urls += "?" + c.urlParams_.Encode()
13257 req, err := http.NewRequest("GET", urls, body)
13258 if err != nil {
13259 return nil, err
13260 }
13261 req.Header = reqHeaders
13262 googleapi.Expand(req.URL, map[string]string{
13263 "name": c.name,
13264 })
13265 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13266 }
13267
13268
13269
13270
13271
13272
13273
13274 func (c *OrganizationsLocationsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
13275 gensupport.SetOptions(c.urlParams_, opts...)
13276 res, err := c.doRequest("json")
13277 if res != nil && res.StatusCode == http.StatusNotModified {
13278 if res.Body != nil {
13279 res.Body.Close()
13280 }
13281 return nil, gensupport.WrapError(&googleapi.Error{
13282 Code: res.StatusCode,
13283 Header: res.Header,
13284 })
13285 }
13286 if err != nil {
13287 return nil, err
13288 }
13289 defer googleapi.CloseBody(res)
13290 if err := googleapi.CheckResponse(res); err != nil {
13291 return nil, gensupport.WrapError(err)
13292 }
13293 ret := &GooglePrivacyDlpV2InspectTemplate{
13294 ServerResponse: googleapi.ServerResponse{
13295 Header: res.Header,
13296 HTTPStatusCode: res.StatusCode,
13297 },
13298 }
13299 target := &ret
13300 if err := gensupport.DecodeResponse(target, res); err != nil {
13301 return nil, err
13302 }
13303 return ret, nil
13304 }
13305
13306 type OrganizationsLocationsInspectTemplatesListCall struct {
13307 s *Service
13308 parentid string
13309 urlParams_ gensupport.URLParams
13310 ifNoneMatch_ string
13311 ctx_ context.Context
13312 header_ http.Header
13313 }
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333 func (r *OrganizationsLocationsInspectTemplatesService) List(parentid string) *OrganizationsLocationsInspectTemplatesListCall {
13334 c := &OrganizationsLocationsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13335 c.parentid = parentid
13336 return c
13337 }
13338
13339
13340
13341 func (c *OrganizationsLocationsInspectTemplatesListCall) LocationId(locationId string) *OrganizationsLocationsInspectTemplatesListCall {
13342 c.urlParams_.Set("locationId", locationId)
13343 return c
13344 }
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354 func (c *OrganizationsLocationsInspectTemplatesListCall) OrderBy(orderBy string) *OrganizationsLocationsInspectTemplatesListCall {
13355 c.urlParams_.Set("orderBy", orderBy)
13356 return c
13357 }
13358
13359
13360
13361
13362 func (c *OrganizationsLocationsInspectTemplatesListCall) PageSize(pageSize int64) *OrganizationsLocationsInspectTemplatesListCall {
13363 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13364 return c
13365 }
13366
13367
13368
13369 func (c *OrganizationsLocationsInspectTemplatesListCall) PageToken(pageToken string) *OrganizationsLocationsInspectTemplatesListCall {
13370 c.urlParams_.Set("pageToken", pageToken)
13371 return c
13372 }
13373
13374
13375
13376
13377 func (c *OrganizationsLocationsInspectTemplatesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesListCall {
13378 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13379 return c
13380 }
13381
13382
13383
13384
13385 func (c *OrganizationsLocationsInspectTemplatesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInspectTemplatesListCall {
13386 c.ifNoneMatch_ = entityTag
13387 return c
13388 }
13389
13390
13391 func (c *OrganizationsLocationsInspectTemplatesListCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesListCall {
13392 c.ctx_ = ctx
13393 return c
13394 }
13395
13396
13397
13398 func (c *OrganizationsLocationsInspectTemplatesListCall) Header() http.Header {
13399 if c.header_ == nil {
13400 c.header_ = make(http.Header)
13401 }
13402 return c.header_
13403 }
13404
13405 func (c *OrganizationsLocationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
13406 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13407 if c.ifNoneMatch_ != "" {
13408 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13409 }
13410 var body io.Reader = nil
13411 c.urlParams_.Set("alt", alt)
13412 c.urlParams_.Set("prettyPrint", "false")
13413 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
13414 urls += "?" + c.urlParams_.Encode()
13415 req, err := http.NewRequest("GET", urls, body)
13416 if err != nil {
13417 return nil, err
13418 }
13419 req.Header = reqHeaders
13420 googleapi.Expand(req.URL, map[string]string{
13421 "parent": c.parentid,
13422 })
13423 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13424 }
13425
13426
13427
13428
13429
13430
13431
13432 func (c *OrganizationsLocationsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInspectTemplatesResponse, error) {
13433 gensupport.SetOptions(c.urlParams_, opts...)
13434 res, err := c.doRequest("json")
13435 if res != nil && res.StatusCode == http.StatusNotModified {
13436 if res.Body != nil {
13437 res.Body.Close()
13438 }
13439 return nil, gensupport.WrapError(&googleapi.Error{
13440 Code: res.StatusCode,
13441 Header: res.Header,
13442 })
13443 }
13444 if err != nil {
13445 return nil, err
13446 }
13447 defer googleapi.CloseBody(res)
13448 if err := googleapi.CheckResponse(res); err != nil {
13449 return nil, gensupport.WrapError(err)
13450 }
13451 ret := &GooglePrivacyDlpV2ListInspectTemplatesResponse{
13452 ServerResponse: googleapi.ServerResponse{
13453 Header: res.Header,
13454 HTTPStatusCode: res.StatusCode,
13455 },
13456 }
13457 target := &ret
13458 if err := gensupport.DecodeResponse(target, res); err != nil {
13459 return nil, err
13460 }
13461 return ret, nil
13462 }
13463
13464
13465
13466
13467 func (c *OrganizationsLocationsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListInspectTemplatesResponse) error) error {
13468 c.ctx_ = ctx
13469 defer c.PageToken(c.urlParams_.Get("pageToken"))
13470 for {
13471 x, err := c.Do()
13472 if err != nil {
13473 return err
13474 }
13475 if err := f(x); err != nil {
13476 return err
13477 }
13478 if x.NextPageToken == "" {
13479 return nil
13480 }
13481 c.PageToken(x.NextPageToken)
13482 }
13483 }
13484
13485 type OrganizationsLocationsInspectTemplatesPatchCall struct {
13486 s *Service
13487 name string
13488 googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest
13489 urlParams_ gensupport.URLParams
13490 ctx_ context.Context
13491 header_ http.Header
13492 }
13493
13494
13495
13496
13497
13498
13499
13500
13501 func (r *OrganizationsLocationsInspectTemplatesService) Patch(name string, googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest) *OrganizationsLocationsInspectTemplatesPatchCall {
13502 c := &OrganizationsLocationsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13503 c.name = name
13504 c.googleprivacydlpv2updateinspecttemplaterequest = googleprivacydlpv2updateinspecttemplaterequest
13505 return c
13506 }
13507
13508
13509
13510
13511 func (c *OrganizationsLocationsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInspectTemplatesPatchCall {
13512 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13513 return c
13514 }
13515
13516
13517 func (c *OrganizationsLocationsInspectTemplatesPatchCall) Context(ctx context.Context) *OrganizationsLocationsInspectTemplatesPatchCall {
13518 c.ctx_ = ctx
13519 return c
13520 }
13521
13522
13523
13524 func (c *OrganizationsLocationsInspectTemplatesPatchCall) Header() http.Header {
13525 if c.header_ == nil {
13526 c.header_ = make(http.Header)
13527 }
13528 return c.header_
13529 }
13530
13531 func (c *OrganizationsLocationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
13532 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13533 var body io.Reader = nil
13534 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateinspecttemplaterequest)
13535 if err != nil {
13536 return nil, err
13537 }
13538 c.urlParams_.Set("alt", alt)
13539 c.urlParams_.Set("prettyPrint", "false")
13540 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
13541 urls += "?" + c.urlParams_.Encode()
13542 req, err := http.NewRequest("PATCH", urls, body)
13543 if err != nil {
13544 return nil, err
13545 }
13546 req.Header = reqHeaders
13547 googleapi.Expand(req.URL, map[string]string{
13548 "name": c.name,
13549 })
13550 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13551 }
13552
13553
13554
13555
13556
13557
13558
13559 func (c *OrganizationsLocationsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
13560 gensupport.SetOptions(c.urlParams_, opts...)
13561 res, err := c.doRequest("json")
13562 if res != nil && res.StatusCode == http.StatusNotModified {
13563 if res.Body != nil {
13564 res.Body.Close()
13565 }
13566 return nil, gensupport.WrapError(&googleapi.Error{
13567 Code: res.StatusCode,
13568 Header: res.Header,
13569 })
13570 }
13571 if err != nil {
13572 return nil, err
13573 }
13574 defer googleapi.CloseBody(res)
13575 if err := googleapi.CheckResponse(res); err != nil {
13576 return nil, gensupport.WrapError(err)
13577 }
13578 ret := &GooglePrivacyDlpV2InspectTemplate{
13579 ServerResponse: googleapi.ServerResponse{
13580 Header: res.Header,
13581 HTTPStatusCode: res.StatusCode,
13582 },
13583 }
13584 target := &ret
13585 if err := gensupport.DecodeResponse(target, res); err != nil {
13586 return nil, err
13587 }
13588 return ret, nil
13589 }
13590
13591 type OrganizationsLocationsJobTriggersCreateCall struct {
13592 s *Service
13593 parentid string
13594 googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest
13595 urlParams_ gensupport.URLParams
13596 ctx_ context.Context
13597 header_ http.Header
13598 }
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615 func (r *OrganizationsLocationsJobTriggersService) Create(parentid string, googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest) *OrganizationsLocationsJobTriggersCreateCall {
13616 c := &OrganizationsLocationsJobTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13617 c.parentid = parentid
13618 c.googleprivacydlpv2createjobtriggerrequest = googleprivacydlpv2createjobtriggerrequest
13619 return c
13620 }
13621
13622
13623
13624
13625 func (c *OrganizationsLocationsJobTriggersCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersCreateCall {
13626 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13627 return c
13628 }
13629
13630
13631 func (c *OrganizationsLocationsJobTriggersCreateCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersCreateCall {
13632 c.ctx_ = ctx
13633 return c
13634 }
13635
13636
13637
13638 func (c *OrganizationsLocationsJobTriggersCreateCall) Header() http.Header {
13639 if c.header_ == nil {
13640 c.header_ = make(http.Header)
13641 }
13642 return c.header_
13643 }
13644
13645 func (c *OrganizationsLocationsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
13646 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13647 var body io.Reader = nil
13648 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createjobtriggerrequest)
13649 if err != nil {
13650 return nil, err
13651 }
13652 c.urlParams_.Set("alt", alt)
13653 c.urlParams_.Set("prettyPrint", "false")
13654 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
13655 urls += "?" + c.urlParams_.Encode()
13656 req, err := http.NewRequest("POST", urls, body)
13657 if err != nil {
13658 return nil, err
13659 }
13660 req.Header = reqHeaders
13661 googleapi.Expand(req.URL, map[string]string{
13662 "parent": c.parentid,
13663 })
13664 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13665 }
13666
13667
13668
13669
13670
13671
13672
13673 func (c *OrganizationsLocationsJobTriggersCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
13674 gensupport.SetOptions(c.urlParams_, opts...)
13675 res, err := c.doRequest("json")
13676 if res != nil && res.StatusCode == http.StatusNotModified {
13677 if res.Body != nil {
13678 res.Body.Close()
13679 }
13680 return nil, gensupport.WrapError(&googleapi.Error{
13681 Code: res.StatusCode,
13682 Header: res.Header,
13683 })
13684 }
13685 if err != nil {
13686 return nil, err
13687 }
13688 defer googleapi.CloseBody(res)
13689 if err := googleapi.CheckResponse(res); err != nil {
13690 return nil, gensupport.WrapError(err)
13691 }
13692 ret := &GooglePrivacyDlpV2JobTrigger{
13693 ServerResponse: googleapi.ServerResponse{
13694 Header: res.Header,
13695 HTTPStatusCode: res.StatusCode,
13696 },
13697 }
13698 target := &ret
13699 if err := gensupport.DecodeResponse(target, res); err != nil {
13700 return nil, err
13701 }
13702 return ret, nil
13703 }
13704
13705 type OrganizationsLocationsJobTriggersDeleteCall struct {
13706 s *Service
13707 name string
13708 urlParams_ gensupport.URLParams
13709 ctx_ context.Context
13710 header_ http.Header
13711 }
13712
13713
13714
13715
13716
13717
13718
13719 func (r *OrganizationsLocationsJobTriggersService) Delete(name string) *OrganizationsLocationsJobTriggersDeleteCall {
13720 c := &OrganizationsLocationsJobTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13721 c.name = name
13722 return c
13723 }
13724
13725
13726
13727
13728 func (c *OrganizationsLocationsJobTriggersDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersDeleteCall {
13729 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13730 return c
13731 }
13732
13733
13734 func (c *OrganizationsLocationsJobTriggersDeleteCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersDeleteCall {
13735 c.ctx_ = ctx
13736 return c
13737 }
13738
13739
13740
13741 func (c *OrganizationsLocationsJobTriggersDeleteCall) Header() http.Header {
13742 if c.header_ == nil {
13743 c.header_ = make(http.Header)
13744 }
13745 return c.header_
13746 }
13747
13748 func (c *OrganizationsLocationsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
13749 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13750 var body io.Reader = nil
13751 c.urlParams_.Set("alt", alt)
13752 c.urlParams_.Set("prettyPrint", "false")
13753 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
13754 urls += "?" + c.urlParams_.Encode()
13755 req, err := http.NewRequest("DELETE", urls, body)
13756 if err != nil {
13757 return nil, err
13758 }
13759 req.Header = reqHeaders
13760 googleapi.Expand(req.URL, map[string]string{
13761 "name": c.name,
13762 })
13763 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13764 }
13765
13766
13767
13768
13769
13770
13771
13772 func (c *OrganizationsLocationsJobTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
13773 gensupport.SetOptions(c.urlParams_, opts...)
13774 res, err := c.doRequest("json")
13775 if res != nil && res.StatusCode == http.StatusNotModified {
13776 if res.Body != nil {
13777 res.Body.Close()
13778 }
13779 return nil, gensupport.WrapError(&googleapi.Error{
13780 Code: res.StatusCode,
13781 Header: res.Header,
13782 })
13783 }
13784 if err != nil {
13785 return nil, err
13786 }
13787 defer googleapi.CloseBody(res)
13788 if err := googleapi.CheckResponse(res); err != nil {
13789 return nil, gensupport.WrapError(err)
13790 }
13791 ret := &GoogleProtobufEmpty{
13792 ServerResponse: googleapi.ServerResponse{
13793 Header: res.Header,
13794 HTTPStatusCode: res.StatusCode,
13795 },
13796 }
13797 target := &ret
13798 if err := gensupport.DecodeResponse(target, res); err != nil {
13799 return nil, err
13800 }
13801 return ret, nil
13802 }
13803
13804 type OrganizationsLocationsJobTriggersGetCall struct {
13805 s *Service
13806 name string
13807 urlParams_ gensupport.URLParams
13808 ifNoneMatch_ string
13809 ctx_ context.Context
13810 header_ http.Header
13811 }
13812
13813
13814
13815
13816
13817
13818
13819 func (r *OrganizationsLocationsJobTriggersService) Get(name string) *OrganizationsLocationsJobTriggersGetCall {
13820 c := &OrganizationsLocationsJobTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13821 c.name = name
13822 return c
13823 }
13824
13825
13826
13827
13828 func (c *OrganizationsLocationsJobTriggersGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersGetCall {
13829 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13830 return c
13831 }
13832
13833
13834
13835
13836 func (c *OrganizationsLocationsJobTriggersGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsJobTriggersGetCall {
13837 c.ifNoneMatch_ = entityTag
13838 return c
13839 }
13840
13841
13842 func (c *OrganizationsLocationsJobTriggersGetCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersGetCall {
13843 c.ctx_ = ctx
13844 return c
13845 }
13846
13847
13848
13849 func (c *OrganizationsLocationsJobTriggersGetCall) Header() http.Header {
13850 if c.header_ == nil {
13851 c.header_ = make(http.Header)
13852 }
13853 return c.header_
13854 }
13855
13856 func (c *OrganizationsLocationsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) {
13857 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13858 if c.ifNoneMatch_ != "" {
13859 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13860 }
13861 var body io.Reader = nil
13862 c.urlParams_.Set("alt", alt)
13863 c.urlParams_.Set("prettyPrint", "false")
13864 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
13865 urls += "?" + c.urlParams_.Encode()
13866 req, err := http.NewRequest("GET", urls, body)
13867 if err != nil {
13868 return nil, err
13869 }
13870 req.Header = reqHeaders
13871 googleapi.Expand(req.URL, map[string]string{
13872 "name": c.name,
13873 })
13874 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13875 }
13876
13877
13878
13879
13880
13881
13882
13883 func (c *OrganizationsLocationsJobTriggersGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
13884 gensupport.SetOptions(c.urlParams_, opts...)
13885 res, err := c.doRequest("json")
13886 if res != nil && res.StatusCode == http.StatusNotModified {
13887 if res.Body != nil {
13888 res.Body.Close()
13889 }
13890 return nil, gensupport.WrapError(&googleapi.Error{
13891 Code: res.StatusCode,
13892 Header: res.Header,
13893 })
13894 }
13895 if err != nil {
13896 return nil, err
13897 }
13898 defer googleapi.CloseBody(res)
13899 if err := googleapi.CheckResponse(res); err != nil {
13900 return nil, gensupport.WrapError(err)
13901 }
13902 ret := &GooglePrivacyDlpV2JobTrigger{
13903 ServerResponse: googleapi.ServerResponse{
13904 Header: res.Header,
13905 HTTPStatusCode: res.StatusCode,
13906 },
13907 }
13908 target := &ret
13909 if err := gensupport.DecodeResponse(target, res); err != nil {
13910 return nil, err
13911 }
13912 return ret, nil
13913 }
13914
13915 type OrganizationsLocationsJobTriggersListCall struct {
13916 s *Service
13917 parentid string
13918 urlParams_ gensupport.URLParams
13919 ifNoneMatch_ string
13920 ctx_ context.Context
13921 header_ http.Header
13922 }
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938 func (r *OrganizationsLocationsJobTriggersService) List(parentid string) *OrganizationsLocationsJobTriggersListCall {
13939 c := &OrganizationsLocationsJobTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13940 c.parentid = parentid
13941 return c
13942 }
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959 func (c *OrganizationsLocationsJobTriggersListCall) Filter(filter string) *OrganizationsLocationsJobTriggersListCall {
13960 c.urlParams_.Set("filter", filter)
13961 return c
13962 }
13963
13964
13965
13966 func (c *OrganizationsLocationsJobTriggersListCall) LocationId(locationId string) *OrganizationsLocationsJobTriggersListCall {
13967 c.urlParams_.Set("locationId", locationId)
13968 return c
13969 }
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981 func (c *OrganizationsLocationsJobTriggersListCall) OrderBy(orderBy string) *OrganizationsLocationsJobTriggersListCall {
13982 c.urlParams_.Set("orderBy", orderBy)
13983 return c
13984 }
13985
13986
13987
13988 func (c *OrganizationsLocationsJobTriggersListCall) PageSize(pageSize int64) *OrganizationsLocationsJobTriggersListCall {
13989 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13990 return c
13991 }
13992
13993
13994
13995
13996 func (c *OrganizationsLocationsJobTriggersListCall) PageToken(pageToken string) *OrganizationsLocationsJobTriggersListCall {
13997 c.urlParams_.Set("pageToken", pageToken)
13998 return c
13999 }
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009 func (c *OrganizationsLocationsJobTriggersListCall) Type(type_ string) *OrganizationsLocationsJobTriggersListCall {
14010 c.urlParams_.Set("type", type_)
14011 return c
14012 }
14013
14014
14015
14016
14017 func (c *OrganizationsLocationsJobTriggersListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersListCall {
14018 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14019 return c
14020 }
14021
14022
14023
14024
14025 func (c *OrganizationsLocationsJobTriggersListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsJobTriggersListCall {
14026 c.ifNoneMatch_ = entityTag
14027 return c
14028 }
14029
14030
14031 func (c *OrganizationsLocationsJobTriggersListCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersListCall {
14032 c.ctx_ = ctx
14033 return c
14034 }
14035
14036
14037
14038 func (c *OrganizationsLocationsJobTriggersListCall) Header() http.Header {
14039 if c.header_ == nil {
14040 c.header_ = make(http.Header)
14041 }
14042 return c.header_
14043 }
14044
14045 func (c *OrganizationsLocationsJobTriggersListCall) doRequest(alt string) (*http.Response, error) {
14046 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14047 if c.ifNoneMatch_ != "" {
14048 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14049 }
14050 var body io.Reader = nil
14051 c.urlParams_.Set("alt", alt)
14052 c.urlParams_.Set("prettyPrint", "false")
14053 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
14054 urls += "?" + c.urlParams_.Encode()
14055 req, err := http.NewRequest("GET", urls, body)
14056 if err != nil {
14057 return nil, err
14058 }
14059 req.Header = reqHeaders
14060 googleapi.Expand(req.URL, map[string]string{
14061 "parent": c.parentid,
14062 })
14063 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14064 }
14065
14066
14067
14068
14069
14070
14071
14072 func (c *OrganizationsLocationsJobTriggersListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListJobTriggersResponse, error) {
14073 gensupport.SetOptions(c.urlParams_, opts...)
14074 res, err := c.doRequest("json")
14075 if res != nil && res.StatusCode == http.StatusNotModified {
14076 if res.Body != nil {
14077 res.Body.Close()
14078 }
14079 return nil, gensupport.WrapError(&googleapi.Error{
14080 Code: res.StatusCode,
14081 Header: res.Header,
14082 })
14083 }
14084 if err != nil {
14085 return nil, err
14086 }
14087 defer googleapi.CloseBody(res)
14088 if err := googleapi.CheckResponse(res); err != nil {
14089 return nil, gensupport.WrapError(err)
14090 }
14091 ret := &GooglePrivacyDlpV2ListJobTriggersResponse{
14092 ServerResponse: googleapi.ServerResponse{
14093 Header: res.Header,
14094 HTTPStatusCode: res.StatusCode,
14095 },
14096 }
14097 target := &ret
14098 if err := gensupport.DecodeResponse(target, res); err != nil {
14099 return nil, err
14100 }
14101 return ret, nil
14102 }
14103
14104
14105
14106
14107 func (c *OrganizationsLocationsJobTriggersListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListJobTriggersResponse) error) error {
14108 c.ctx_ = ctx
14109 defer c.PageToken(c.urlParams_.Get("pageToken"))
14110 for {
14111 x, err := c.Do()
14112 if err != nil {
14113 return err
14114 }
14115 if err := f(x); err != nil {
14116 return err
14117 }
14118 if x.NextPageToken == "" {
14119 return nil
14120 }
14121 c.PageToken(x.NextPageToken)
14122 }
14123 }
14124
14125 type OrganizationsLocationsJobTriggersPatchCall struct {
14126 s *Service
14127 name string
14128 googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest
14129 urlParams_ gensupport.URLParams
14130 ctx_ context.Context
14131 header_ http.Header
14132 }
14133
14134
14135
14136
14137
14138
14139
14140 func (r *OrganizationsLocationsJobTriggersService) Patch(name string, googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest) *OrganizationsLocationsJobTriggersPatchCall {
14141 c := &OrganizationsLocationsJobTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14142 c.name = name
14143 c.googleprivacydlpv2updatejobtriggerrequest = googleprivacydlpv2updatejobtriggerrequest
14144 return c
14145 }
14146
14147
14148
14149
14150 func (c *OrganizationsLocationsJobTriggersPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsJobTriggersPatchCall {
14151 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14152 return c
14153 }
14154
14155
14156 func (c *OrganizationsLocationsJobTriggersPatchCall) Context(ctx context.Context) *OrganizationsLocationsJobTriggersPatchCall {
14157 c.ctx_ = ctx
14158 return c
14159 }
14160
14161
14162
14163 func (c *OrganizationsLocationsJobTriggersPatchCall) Header() http.Header {
14164 if c.header_ == nil {
14165 c.header_ = make(http.Header)
14166 }
14167 return c.header_
14168 }
14169
14170 func (c *OrganizationsLocationsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
14171 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14172 var body io.Reader = nil
14173 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatejobtriggerrequest)
14174 if err != nil {
14175 return nil, err
14176 }
14177 c.urlParams_.Set("alt", alt)
14178 c.urlParams_.Set("prettyPrint", "false")
14179 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
14180 urls += "?" + c.urlParams_.Encode()
14181 req, err := http.NewRequest("PATCH", urls, body)
14182 if err != nil {
14183 return nil, err
14184 }
14185 req.Header = reqHeaders
14186 googleapi.Expand(req.URL, map[string]string{
14187 "name": c.name,
14188 })
14189 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14190 }
14191
14192
14193
14194
14195
14196
14197
14198 func (c *OrganizationsLocationsJobTriggersPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
14199 gensupport.SetOptions(c.urlParams_, opts...)
14200 res, err := c.doRequest("json")
14201 if res != nil && res.StatusCode == http.StatusNotModified {
14202 if res.Body != nil {
14203 res.Body.Close()
14204 }
14205 return nil, gensupport.WrapError(&googleapi.Error{
14206 Code: res.StatusCode,
14207 Header: res.Header,
14208 })
14209 }
14210 if err != nil {
14211 return nil, err
14212 }
14213 defer googleapi.CloseBody(res)
14214 if err := googleapi.CheckResponse(res); err != nil {
14215 return nil, gensupport.WrapError(err)
14216 }
14217 ret := &GooglePrivacyDlpV2JobTrigger{
14218 ServerResponse: googleapi.ServerResponse{
14219 Header: res.Header,
14220 HTTPStatusCode: res.StatusCode,
14221 },
14222 }
14223 target := &ret
14224 if err := gensupport.DecodeResponse(target, res); err != nil {
14225 return nil, err
14226 }
14227 return ret, nil
14228 }
14229
14230 type OrganizationsLocationsProjectDataProfilesGetCall struct {
14231 s *Service
14232 name string
14233 urlParams_ gensupport.URLParams
14234 ifNoneMatch_ string
14235 ctx_ context.Context
14236 header_ http.Header
14237 }
14238
14239
14240
14241
14242
14243 func (r *OrganizationsLocationsProjectDataProfilesService) Get(name string) *OrganizationsLocationsProjectDataProfilesGetCall {
14244 c := &OrganizationsLocationsProjectDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14245 c.name = name
14246 return c
14247 }
14248
14249
14250
14251
14252 func (c *OrganizationsLocationsProjectDataProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsProjectDataProfilesGetCall {
14253 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14254 return c
14255 }
14256
14257
14258
14259
14260 func (c *OrganizationsLocationsProjectDataProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsProjectDataProfilesGetCall {
14261 c.ifNoneMatch_ = entityTag
14262 return c
14263 }
14264
14265
14266 func (c *OrganizationsLocationsProjectDataProfilesGetCall) Context(ctx context.Context) *OrganizationsLocationsProjectDataProfilesGetCall {
14267 c.ctx_ = ctx
14268 return c
14269 }
14270
14271
14272
14273 func (c *OrganizationsLocationsProjectDataProfilesGetCall) Header() http.Header {
14274 if c.header_ == nil {
14275 c.header_ = make(http.Header)
14276 }
14277 return c.header_
14278 }
14279
14280 func (c *OrganizationsLocationsProjectDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
14281 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14282 if c.ifNoneMatch_ != "" {
14283 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14284 }
14285 var body io.Reader = nil
14286 c.urlParams_.Set("alt", alt)
14287 c.urlParams_.Set("prettyPrint", "false")
14288 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
14289 urls += "?" + c.urlParams_.Encode()
14290 req, err := http.NewRequest("GET", urls, body)
14291 if err != nil {
14292 return nil, err
14293 }
14294 req.Header = reqHeaders
14295 googleapi.Expand(req.URL, map[string]string{
14296 "name": c.name,
14297 })
14298 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14299 }
14300
14301
14302
14303
14304
14305
14306
14307 func (c *OrganizationsLocationsProjectDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ProjectDataProfile, error) {
14308 gensupport.SetOptions(c.urlParams_, opts...)
14309 res, err := c.doRequest("json")
14310 if res != nil && res.StatusCode == http.StatusNotModified {
14311 if res.Body != nil {
14312 res.Body.Close()
14313 }
14314 return nil, gensupport.WrapError(&googleapi.Error{
14315 Code: res.StatusCode,
14316 Header: res.Header,
14317 })
14318 }
14319 if err != nil {
14320 return nil, err
14321 }
14322 defer googleapi.CloseBody(res)
14323 if err := googleapi.CheckResponse(res); err != nil {
14324 return nil, gensupport.WrapError(err)
14325 }
14326 ret := &GooglePrivacyDlpV2ProjectDataProfile{
14327 ServerResponse: googleapi.ServerResponse{
14328 Header: res.Header,
14329 HTTPStatusCode: res.StatusCode,
14330 },
14331 }
14332 target := &ret
14333 if err := gensupport.DecodeResponse(target, res); err != nil {
14334 return nil, err
14335 }
14336 return ret, nil
14337 }
14338
14339 type OrganizationsLocationsProjectDataProfilesListCall struct {
14340 s *Service
14341 parent string
14342 urlParams_ gensupport.URLParams
14343 ifNoneMatch_ string
14344 ctx_ context.Context
14345 header_ http.Header
14346 }
14347
14348
14349
14350
14351 func (r *OrganizationsLocationsProjectDataProfilesService) List(parent string) *OrganizationsLocationsProjectDataProfilesListCall {
14352 c := &OrganizationsLocationsProjectDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14353 c.parent = parent
14354 return c
14355 }
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368 func (c *OrganizationsLocationsProjectDataProfilesListCall) Filter(filter string) *OrganizationsLocationsProjectDataProfilesListCall {
14369 c.urlParams_.Set("filter", filter)
14370 return c
14371 }
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382 func (c *OrganizationsLocationsProjectDataProfilesListCall) OrderBy(orderBy string) *OrganizationsLocationsProjectDataProfilesListCall {
14383 c.urlParams_.Set("orderBy", orderBy)
14384 return c
14385 }
14386
14387
14388
14389
14390 func (c *OrganizationsLocationsProjectDataProfilesListCall) PageSize(pageSize int64) *OrganizationsLocationsProjectDataProfilesListCall {
14391 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14392 return c
14393 }
14394
14395
14396
14397 func (c *OrganizationsLocationsProjectDataProfilesListCall) PageToken(pageToken string) *OrganizationsLocationsProjectDataProfilesListCall {
14398 c.urlParams_.Set("pageToken", pageToken)
14399 return c
14400 }
14401
14402
14403
14404
14405 func (c *OrganizationsLocationsProjectDataProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsProjectDataProfilesListCall {
14406 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14407 return c
14408 }
14409
14410
14411
14412
14413 func (c *OrganizationsLocationsProjectDataProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsProjectDataProfilesListCall {
14414 c.ifNoneMatch_ = entityTag
14415 return c
14416 }
14417
14418
14419 func (c *OrganizationsLocationsProjectDataProfilesListCall) Context(ctx context.Context) *OrganizationsLocationsProjectDataProfilesListCall {
14420 c.ctx_ = ctx
14421 return c
14422 }
14423
14424
14425
14426 func (c *OrganizationsLocationsProjectDataProfilesListCall) Header() http.Header {
14427 if c.header_ == nil {
14428 c.header_ = make(http.Header)
14429 }
14430 return c.header_
14431 }
14432
14433 func (c *OrganizationsLocationsProjectDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
14434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14435 if c.ifNoneMatch_ != "" {
14436 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14437 }
14438 var body io.Reader = nil
14439 c.urlParams_.Set("alt", alt)
14440 c.urlParams_.Set("prettyPrint", "false")
14441 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/projectDataProfiles")
14442 urls += "?" + c.urlParams_.Encode()
14443 req, err := http.NewRequest("GET", urls, body)
14444 if err != nil {
14445 return nil, err
14446 }
14447 req.Header = reqHeaders
14448 googleapi.Expand(req.URL, map[string]string{
14449 "parent": c.parent,
14450 })
14451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14452 }
14453
14454
14455
14456
14457
14458
14459
14460 func (c *OrganizationsLocationsProjectDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListProjectDataProfilesResponse, error) {
14461 gensupport.SetOptions(c.urlParams_, opts...)
14462 res, err := c.doRequest("json")
14463 if res != nil && res.StatusCode == http.StatusNotModified {
14464 if res.Body != nil {
14465 res.Body.Close()
14466 }
14467 return nil, gensupport.WrapError(&googleapi.Error{
14468 Code: res.StatusCode,
14469 Header: res.Header,
14470 })
14471 }
14472 if err != nil {
14473 return nil, err
14474 }
14475 defer googleapi.CloseBody(res)
14476 if err := googleapi.CheckResponse(res); err != nil {
14477 return nil, gensupport.WrapError(err)
14478 }
14479 ret := &GooglePrivacyDlpV2ListProjectDataProfilesResponse{
14480 ServerResponse: googleapi.ServerResponse{
14481 Header: res.Header,
14482 HTTPStatusCode: res.StatusCode,
14483 },
14484 }
14485 target := &ret
14486 if err := gensupport.DecodeResponse(target, res); err != nil {
14487 return nil, err
14488 }
14489 return ret, nil
14490 }
14491
14492
14493
14494
14495 func (c *OrganizationsLocationsProjectDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListProjectDataProfilesResponse) error) error {
14496 c.ctx_ = ctx
14497 defer c.PageToken(c.urlParams_.Get("pageToken"))
14498 for {
14499 x, err := c.Do()
14500 if err != nil {
14501 return err
14502 }
14503 if err := f(x); err != nil {
14504 return err
14505 }
14506 if x.NextPageToken == "" {
14507 return nil
14508 }
14509 c.PageToken(x.NextPageToken)
14510 }
14511 }
14512
14513 type OrganizationsLocationsStoredInfoTypesCreateCall struct {
14514 s *Service
14515 parentid string
14516 googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest
14517 urlParams_ gensupport.URLParams
14518 ctx_ context.Context
14519 header_ http.Header
14520 }
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540 func (r *OrganizationsLocationsStoredInfoTypesService) Create(parentid string, googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) *OrganizationsLocationsStoredInfoTypesCreateCall {
14541 c := &OrganizationsLocationsStoredInfoTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14542 c.parentid = parentid
14543 c.googleprivacydlpv2createstoredinfotyperequest = googleprivacydlpv2createstoredinfotyperequest
14544 return c
14545 }
14546
14547
14548
14549
14550 func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesCreateCall {
14551 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14552 return c
14553 }
14554
14555
14556 func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesCreateCall {
14557 c.ctx_ = ctx
14558 return c
14559 }
14560
14561
14562
14563 func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Header() http.Header {
14564 if c.header_ == nil {
14565 c.header_ = make(http.Header)
14566 }
14567 return c.header_
14568 }
14569
14570 func (c *OrganizationsLocationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) {
14571 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14572 var body io.Reader = nil
14573 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createstoredinfotyperequest)
14574 if err != nil {
14575 return nil, err
14576 }
14577 c.urlParams_.Set("alt", alt)
14578 c.urlParams_.Set("prettyPrint", "false")
14579 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
14580 urls += "?" + c.urlParams_.Encode()
14581 req, err := http.NewRequest("POST", urls, body)
14582 if err != nil {
14583 return nil, err
14584 }
14585 req.Header = reqHeaders
14586 googleapi.Expand(req.URL, map[string]string{
14587 "parent": c.parentid,
14588 })
14589 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14590 }
14591
14592
14593
14594
14595
14596
14597
14598 func (c *OrganizationsLocationsStoredInfoTypesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
14599 gensupport.SetOptions(c.urlParams_, opts...)
14600 res, err := c.doRequest("json")
14601 if res != nil && res.StatusCode == http.StatusNotModified {
14602 if res.Body != nil {
14603 res.Body.Close()
14604 }
14605 return nil, gensupport.WrapError(&googleapi.Error{
14606 Code: res.StatusCode,
14607 Header: res.Header,
14608 })
14609 }
14610 if err != nil {
14611 return nil, err
14612 }
14613 defer googleapi.CloseBody(res)
14614 if err := googleapi.CheckResponse(res); err != nil {
14615 return nil, gensupport.WrapError(err)
14616 }
14617 ret := &GooglePrivacyDlpV2StoredInfoType{
14618 ServerResponse: googleapi.ServerResponse{
14619 Header: res.Header,
14620 HTTPStatusCode: res.StatusCode,
14621 },
14622 }
14623 target := &ret
14624 if err := gensupport.DecodeResponse(target, res); err != nil {
14625 return nil, err
14626 }
14627 return ret, nil
14628 }
14629
14630 type OrganizationsLocationsStoredInfoTypesDeleteCall struct {
14631 s *Service
14632 name string
14633 urlParams_ gensupport.URLParams
14634 ctx_ context.Context
14635 header_ http.Header
14636 }
14637
14638
14639
14640
14641
14642
14643
14644
14645 func (r *OrganizationsLocationsStoredInfoTypesService) Delete(name string) *OrganizationsLocationsStoredInfoTypesDeleteCall {
14646 c := &OrganizationsLocationsStoredInfoTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14647 c.name = name
14648 return c
14649 }
14650
14651
14652
14653
14654 func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesDeleteCall {
14655 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14656 return c
14657 }
14658
14659
14660 func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesDeleteCall {
14661 c.ctx_ = ctx
14662 return c
14663 }
14664
14665
14666
14667 func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Header() http.Header {
14668 if c.header_ == nil {
14669 c.header_ = make(http.Header)
14670 }
14671 return c.header_
14672 }
14673
14674 func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
14675 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14676 var body io.Reader = nil
14677 c.urlParams_.Set("alt", alt)
14678 c.urlParams_.Set("prettyPrint", "false")
14679 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
14680 urls += "?" + c.urlParams_.Encode()
14681 req, err := http.NewRequest("DELETE", urls, body)
14682 if err != nil {
14683 return nil, err
14684 }
14685 req.Header = reqHeaders
14686 googleapi.Expand(req.URL, map[string]string{
14687 "name": c.name,
14688 })
14689 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14690 }
14691
14692
14693
14694
14695
14696
14697
14698 func (c *OrganizationsLocationsStoredInfoTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
14699 gensupport.SetOptions(c.urlParams_, opts...)
14700 res, err := c.doRequest("json")
14701 if res != nil && res.StatusCode == http.StatusNotModified {
14702 if res.Body != nil {
14703 res.Body.Close()
14704 }
14705 return nil, gensupport.WrapError(&googleapi.Error{
14706 Code: res.StatusCode,
14707 Header: res.Header,
14708 })
14709 }
14710 if err != nil {
14711 return nil, err
14712 }
14713 defer googleapi.CloseBody(res)
14714 if err := googleapi.CheckResponse(res); err != nil {
14715 return nil, gensupport.WrapError(err)
14716 }
14717 ret := &GoogleProtobufEmpty{
14718 ServerResponse: googleapi.ServerResponse{
14719 Header: res.Header,
14720 HTTPStatusCode: res.StatusCode,
14721 },
14722 }
14723 target := &ret
14724 if err := gensupport.DecodeResponse(target, res); err != nil {
14725 return nil, err
14726 }
14727 return ret, nil
14728 }
14729
14730 type OrganizationsLocationsStoredInfoTypesGetCall struct {
14731 s *Service
14732 name string
14733 urlParams_ gensupport.URLParams
14734 ifNoneMatch_ string
14735 ctx_ context.Context
14736 header_ http.Header
14737 }
14738
14739
14740
14741
14742
14743
14744
14745
14746 func (r *OrganizationsLocationsStoredInfoTypesService) Get(name string) *OrganizationsLocationsStoredInfoTypesGetCall {
14747 c := &OrganizationsLocationsStoredInfoTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14748 c.name = name
14749 return c
14750 }
14751
14752
14753
14754
14755 func (c *OrganizationsLocationsStoredInfoTypesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesGetCall {
14756 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14757 return c
14758 }
14759
14760
14761
14762
14763 func (c *OrganizationsLocationsStoredInfoTypesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsStoredInfoTypesGetCall {
14764 c.ifNoneMatch_ = entityTag
14765 return c
14766 }
14767
14768
14769 func (c *OrganizationsLocationsStoredInfoTypesGetCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesGetCall {
14770 c.ctx_ = ctx
14771 return c
14772 }
14773
14774
14775
14776 func (c *OrganizationsLocationsStoredInfoTypesGetCall) Header() http.Header {
14777 if c.header_ == nil {
14778 c.header_ = make(http.Header)
14779 }
14780 return c.header_
14781 }
14782
14783 func (c *OrganizationsLocationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) {
14784 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14785 if c.ifNoneMatch_ != "" {
14786 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14787 }
14788 var body io.Reader = nil
14789 c.urlParams_.Set("alt", alt)
14790 c.urlParams_.Set("prettyPrint", "false")
14791 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
14792 urls += "?" + c.urlParams_.Encode()
14793 req, err := http.NewRequest("GET", urls, body)
14794 if err != nil {
14795 return nil, err
14796 }
14797 req.Header = reqHeaders
14798 googleapi.Expand(req.URL, map[string]string{
14799 "name": c.name,
14800 })
14801 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14802 }
14803
14804
14805
14806
14807
14808
14809
14810 func (c *OrganizationsLocationsStoredInfoTypesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
14811 gensupport.SetOptions(c.urlParams_, opts...)
14812 res, err := c.doRequest("json")
14813 if res != nil && res.StatusCode == http.StatusNotModified {
14814 if res.Body != nil {
14815 res.Body.Close()
14816 }
14817 return nil, gensupport.WrapError(&googleapi.Error{
14818 Code: res.StatusCode,
14819 Header: res.Header,
14820 })
14821 }
14822 if err != nil {
14823 return nil, err
14824 }
14825 defer googleapi.CloseBody(res)
14826 if err := googleapi.CheckResponse(res); err != nil {
14827 return nil, gensupport.WrapError(err)
14828 }
14829 ret := &GooglePrivacyDlpV2StoredInfoType{
14830 ServerResponse: googleapi.ServerResponse{
14831 Header: res.Header,
14832 HTTPStatusCode: res.StatusCode,
14833 },
14834 }
14835 target := &ret
14836 if err := gensupport.DecodeResponse(target, res); err != nil {
14837 return nil, err
14838 }
14839 return ret, nil
14840 }
14841
14842 type OrganizationsLocationsStoredInfoTypesListCall struct {
14843 s *Service
14844 parentid string
14845 urlParams_ gensupport.URLParams
14846 ifNoneMatch_ string
14847 ctx_ context.Context
14848 header_ http.Header
14849 }
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866 func (r *OrganizationsLocationsStoredInfoTypesService) List(parentid string) *OrganizationsLocationsStoredInfoTypesListCall {
14867 c := &OrganizationsLocationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14868 c.parentid = parentid
14869 return c
14870 }
14871
14872
14873
14874 func (c *OrganizationsLocationsStoredInfoTypesListCall) LocationId(locationId string) *OrganizationsLocationsStoredInfoTypesListCall {
14875 c.urlParams_.Set("locationId", locationId)
14876 return c
14877 }
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887 func (c *OrganizationsLocationsStoredInfoTypesListCall) OrderBy(orderBy string) *OrganizationsLocationsStoredInfoTypesListCall {
14888 c.urlParams_.Set("orderBy", orderBy)
14889 return c
14890 }
14891
14892
14893
14894
14895 func (c *OrganizationsLocationsStoredInfoTypesListCall) PageSize(pageSize int64) *OrganizationsLocationsStoredInfoTypesListCall {
14896 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14897 return c
14898 }
14899
14900
14901
14902 func (c *OrganizationsLocationsStoredInfoTypesListCall) PageToken(pageToken string) *OrganizationsLocationsStoredInfoTypesListCall {
14903 c.urlParams_.Set("pageToken", pageToken)
14904 return c
14905 }
14906
14907
14908
14909
14910 func (c *OrganizationsLocationsStoredInfoTypesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesListCall {
14911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14912 return c
14913 }
14914
14915
14916
14917
14918 func (c *OrganizationsLocationsStoredInfoTypesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsStoredInfoTypesListCall {
14919 c.ifNoneMatch_ = entityTag
14920 return c
14921 }
14922
14923
14924 func (c *OrganizationsLocationsStoredInfoTypesListCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesListCall {
14925 c.ctx_ = ctx
14926 return c
14927 }
14928
14929
14930
14931 func (c *OrganizationsLocationsStoredInfoTypesListCall) Header() http.Header {
14932 if c.header_ == nil {
14933 c.header_ = make(http.Header)
14934 }
14935 return c.header_
14936 }
14937
14938 func (c *OrganizationsLocationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
14939 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14940 if c.ifNoneMatch_ != "" {
14941 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14942 }
14943 var body io.Reader = nil
14944 c.urlParams_.Set("alt", alt)
14945 c.urlParams_.Set("prettyPrint", "false")
14946 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
14947 urls += "?" + c.urlParams_.Encode()
14948 req, err := http.NewRequest("GET", urls, body)
14949 if err != nil {
14950 return nil, err
14951 }
14952 req.Header = reqHeaders
14953 googleapi.Expand(req.URL, map[string]string{
14954 "parent": c.parentid,
14955 })
14956 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14957 }
14958
14959
14960
14961
14962
14963
14964
14965 func (c *OrganizationsLocationsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListStoredInfoTypesResponse, error) {
14966 gensupport.SetOptions(c.urlParams_, opts...)
14967 res, err := c.doRequest("json")
14968 if res != nil && res.StatusCode == http.StatusNotModified {
14969 if res.Body != nil {
14970 res.Body.Close()
14971 }
14972 return nil, gensupport.WrapError(&googleapi.Error{
14973 Code: res.StatusCode,
14974 Header: res.Header,
14975 })
14976 }
14977 if err != nil {
14978 return nil, err
14979 }
14980 defer googleapi.CloseBody(res)
14981 if err := googleapi.CheckResponse(res); err != nil {
14982 return nil, gensupport.WrapError(err)
14983 }
14984 ret := &GooglePrivacyDlpV2ListStoredInfoTypesResponse{
14985 ServerResponse: googleapi.ServerResponse{
14986 Header: res.Header,
14987 HTTPStatusCode: res.StatusCode,
14988 },
14989 }
14990 target := &ret
14991 if err := gensupport.DecodeResponse(target, res); err != nil {
14992 return nil, err
14993 }
14994 return ret, nil
14995 }
14996
14997
14998
14999
15000 func (c *OrganizationsLocationsStoredInfoTypesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListStoredInfoTypesResponse) error) error {
15001 c.ctx_ = ctx
15002 defer c.PageToken(c.urlParams_.Get("pageToken"))
15003 for {
15004 x, err := c.Do()
15005 if err != nil {
15006 return err
15007 }
15008 if err := f(x); err != nil {
15009 return err
15010 }
15011 if x.NextPageToken == "" {
15012 return nil
15013 }
15014 c.PageToken(x.NextPageToken)
15015 }
15016 }
15017
15018 type OrganizationsLocationsStoredInfoTypesPatchCall struct {
15019 s *Service
15020 name string
15021 googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
15022 urlParams_ gensupport.URLParams
15023 ctx_ context.Context
15024 header_ http.Header
15025 }
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035 func (r *OrganizationsLocationsStoredInfoTypesService) Patch(name string, googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) *OrganizationsLocationsStoredInfoTypesPatchCall {
15036 c := &OrganizationsLocationsStoredInfoTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15037 c.name = name
15038 c.googleprivacydlpv2updatestoredinfotyperequest = googleprivacydlpv2updatestoredinfotyperequest
15039 return c
15040 }
15041
15042
15043
15044
15045 func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsStoredInfoTypesPatchCall {
15046 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15047 return c
15048 }
15049
15050
15051 func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Context(ctx context.Context) *OrganizationsLocationsStoredInfoTypesPatchCall {
15052 c.ctx_ = ctx
15053 return c
15054 }
15055
15056
15057
15058 func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Header() http.Header {
15059 if c.header_ == nil {
15060 c.header_ = make(http.Header)
15061 }
15062 return c.header_
15063 }
15064
15065 func (c *OrganizationsLocationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) {
15066 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15067 var body io.Reader = nil
15068 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatestoredinfotyperequest)
15069 if err != nil {
15070 return nil, err
15071 }
15072 c.urlParams_.Set("alt", alt)
15073 c.urlParams_.Set("prettyPrint", "false")
15074 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
15075 urls += "?" + c.urlParams_.Encode()
15076 req, err := http.NewRequest("PATCH", urls, body)
15077 if err != nil {
15078 return nil, err
15079 }
15080 req.Header = reqHeaders
15081 googleapi.Expand(req.URL, map[string]string{
15082 "name": c.name,
15083 })
15084 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15085 }
15086
15087
15088
15089
15090
15091
15092
15093 func (c *OrganizationsLocationsStoredInfoTypesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
15094 gensupport.SetOptions(c.urlParams_, opts...)
15095 res, err := c.doRequest("json")
15096 if res != nil && res.StatusCode == http.StatusNotModified {
15097 if res.Body != nil {
15098 res.Body.Close()
15099 }
15100 return nil, gensupport.WrapError(&googleapi.Error{
15101 Code: res.StatusCode,
15102 Header: res.Header,
15103 })
15104 }
15105 if err != nil {
15106 return nil, err
15107 }
15108 defer googleapi.CloseBody(res)
15109 if err := googleapi.CheckResponse(res); err != nil {
15110 return nil, gensupport.WrapError(err)
15111 }
15112 ret := &GooglePrivacyDlpV2StoredInfoType{
15113 ServerResponse: googleapi.ServerResponse{
15114 Header: res.Header,
15115 HTTPStatusCode: res.StatusCode,
15116 },
15117 }
15118 target := &ret
15119 if err := gensupport.DecodeResponse(target, res); err != nil {
15120 return nil, err
15121 }
15122 return ret, nil
15123 }
15124
15125 type OrganizationsLocationsTableDataProfilesDeleteCall struct {
15126 s *Service
15127 name string
15128 urlParams_ gensupport.URLParams
15129 ctx_ context.Context
15130 header_ http.Header
15131 }
15132
15133
15134
15135
15136
15137 func (r *OrganizationsLocationsTableDataProfilesService) Delete(name string) *OrganizationsLocationsTableDataProfilesDeleteCall {
15138 c := &OrganizationsLocationsTableDataProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15139 c.name = name
15140 return c
15141 }
15142
15143
15144
15145
15146 func (c *OrganizationsLocationsTableDataProfilesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsTableDataProfilesDeleteCall {
15147 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15148 return c
15149 }
15150
15151
15152 func (c *OrganizationsLocationsTableDataProfilesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsTableDataProfilesDeleteCall {
15153 c.ctx_ = ctx
15154 return c
15155 }
15156
15157
15158
15159 func (c *OrganizationsLocationsTableDataProfilesDeleteCall) Header() http.Header {
15160 if c.header_ == nil {
15161 c.header_ = make(http.Header)
15162 }
15163 return c.header_
15164 }
15165
15166 func (c *OrganizationsLocationsTableDataProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
15167 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15168 var body io.Reader = nil
15169 c.urlParams_.Set("alt", alt)
15170 c.urlParams_.Set("prettyPrint", "false")
15171 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
15172 urls += "?" + c.urlParams_.Encode()
15173 req, err := http.NewRequest("DELETE", urls, body)
15174 if err != nil {
15175 return nil, err
15176 }
15177 req.Header = reqHeaders
15178 googleapi.Expand(req.URL, map[string]string{
15179 "name": c.name,
15180 })
15181 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15182 }
15183
15184
15185
15186
15187
15188
15189
15190 func (c *OrganizationsLocationsTableDataProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
15191 gensupport.SetOptions(c.urlParams_, opts...)
15192 res, err := c.doRequest("json")
15193 if res != nil && res.StatusCode == http.StatusNotModified {
15194 if res.Body != nil {
15195 res.Body.Close()
15196 }
15197 return nil, gensupport.WrapError(&googleapi.Error{
15198 Code: res.StatusCode,
15199 Header: res.Header,
15200 })
15201 }
15202 if err != nil {
15203 return nil, err
15204 }
15205 defer googleapi.CloseBody(res)
15206 if err := googleapi.CheckResponse(res); err != nil {
15207 return nil, gensupport.WrapError(err)
15208 }
15209 ret := &GoogleProtobufEmpty{
15210 ServerResponse: googleapi.ServerResponse{
15211 Header: res.Header,
15212 HTTPStatusCode: res.StatusCode,
15213 },
15214 }
15215 target := &ret
15216 if err := gensupport.DecodeResponse(target, res); err != nil {
15217 return nil, err
15218 }
15219 return ret, nil
15220 }
15221
15222 type OrganizationsLocationsTableDataProfilesGetCall struct {
15223 s *Service
15224 name string
15225 urlParams_ gensupport.URLParams
15226 ifNoneMatch_ string
15227 ctx_ context.Context
15228 header_ http.Header
15229 }
15230
15231
15232
15233
15234
15235 func (r *OrganizationsLocationsTableDataProfilesService) Get(name string) *OrganizationsLocationsTableDataProfilesGetCall {
15236 c := &OrganizationsLocationsTableDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15237 c.name = name
15238 return c
15239 }
15240
15241
15242
15243
15244 func (c *OrganizationsLocationsTableDataProfilesGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsTableDataProfilesGetCall {
15245 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15246 return c
15247 }
15248
15249
15250
15251
15252 func (c *OrganizationsLocationsTableDataProfilesGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsTableDataProfilesGetCall {
15253 c.ifNoneMatch_ = entityTag
15254 return c
15255 }
15256
15257
15258 func (c *OrganizationsLocationsTableDataProfilesGetCall) Context(ctx context.Context) *OrganizationsLocationsTableDataProfilesGetCall {
15259 c.ctx_ = ctx
15260 return c
15261 }
15262
15263
15264
15265 func (c *OrganizationsLocationsTableDataProfilesGetCall) Header() http.Header {
15266 if c.header_ == nil {
15267 c.header_ = make(http.Header)
15268 }
15269 return c.header_
15270 }
15271
15272 func (c *OrganizationsLocationsTableDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
15273 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15274 if c.ifNoneMatch_ != "" {
15275 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15276 }
15277 var body io.Reader = nil
15278 c.urlParams_.Set("alt", alt)
15279 c.urlParams_.Set("prettyPrint", "false")
15280 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
15281 urls += "?" + c.urlParams_.Encode()
15282 req, err := http.NewRequest("GET", urls, body)
15283 if err != nil {
15284 return nil, err
15285 }
15286 req.Header = reqHeaders
15287 googleapi.Expand(req.URL, map[string]string{
15288 "name": c.name,
15289 })
15290 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15291 }
15292
15293
15294
15295
15296
15297
15298
15299 func (c *OrganizationsLocationsTableDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2TableDataProfile, error) {
15300 gensupport.SetOptions(c.urlParams_, opts...)
15301 res, err := c.doRequest("json")
15302 if res != nil && res.StatusCode == http.StatusNotModified {
15303 if res.Body != nil {
15304 res.Body.Close()
15305 }
15306 return nil, gensupport.WrapError(&googleapi.Error{
15307 Code: res.StatusCode,
15308 Header: res.Header,
15309 })
15310 }
15311 if err != nil {
15312 return nil, err
15313 }
15314 defer googleapi.CloseBody(res)
15315 if err := googleapi.CheckResponse(res); err != nil {
15316 return nil, gensupport.WrapError(err)
15317 }
15318 ret := &GooglePrivacyDlpV2TableDataProfile{
15319 ServerResponse: googleapi.ServerResponse{
15320 Header: res.Header,
15321 HTTPStatusCode: res.StatusCode,
15322 },
15323 }
15324 target := &ret
15325 if err := gensupport.DecodeResponse(target, res); err != nil {
15326 return nil, err
15327 }
15328 return ret, nil
15329 }
15330
15331 type OrganizationsLocationsTableDataProfilesListCall struct {
15332 s *Service
15333 parent string
15334 urlParams_ gensupport.URLParams
15335 ifNoneMatch_ string
15336 ctx_ context.Context
15337 header_ http.Header
15338 }
15339
15340
15341
15342
15343
15344
15345 func (r *OrganizationsLocationsTableDataProfilesService) List(parent string) *OrganizationsLocationsTableDataProfilesListCall {
15346 c := &OrganizationsLocationsTableDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15347 c.parent = parent
15348 return c
15349 }
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366 func (c *OrganizationsLocationsTableDataProfilesListCall) Filter(filter string) *OrganizationsLocationsTableDataProfilesListCall {
15367 c.urlParams_.Set("filter", filter)
15368 return c
15369 }
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384 func (c *OrganizationsLocationsTableDataProfilesListCall) OrderBy(orderBy string) *OrganizationsLocationsTableDataProfilesListCall {
15385 c.urlParams_.Set("orderBy", orderBy)
15386 return c
15387 }
15388
15389
15390
15391
15392 func (c *OrganizationsLocationsTableDataProfilesListCall) PageSize(pageSize int64) *OrganizationsLocationsTableDataProfilesListCall {
15393 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15394 return c
15395 }
15396
15397
15398
15399 func (c *OrganizationsLocationsTableDataProfilesListCall) PageToken(pageToken string) *OrganizationsLocationsTableDataProfilesListCall {
15400 c.urlParams_.Set("pageToken", pageToken)
15401 return c
15402 }
15403
15404
15405
15406
15407 func (c *OrganizationsLocationsTableDataProfilesListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsTableDataProfilesListCall {
15408 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15409 return c
15410 }
15411
15412
15413
15414
15415 func (c *OrganizationsLocationsTableDataProfilesListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsTableDataProfilesListCall {
15416 c.ifNoneMatch_ = entityTag
15417 return c
15418 }
15419
15420
15421 func (c *OrganizationsLocationsTableDataProfilesListCall) Context(ctx context.Context) *OrganizationsLocationsTableDataProfilesListCall {
15422 c.ctx_ = ctx
15423 return c
15424 }
15425
15426
15427
15428 func (c *OrganizationsLocationsTableDataProfilesListCall) Header() http.Header {
15429 if c.header_ == nil {
15430 c.header_ = make(http.Header)
15431 }
15432 return c.header_
15433 }
15434
15435 func (c *OrganizationsLocationsTableDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
15436 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15437 if c.ifNoneMatch_ != "" {
15438 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15439 }
15440 var body io.Reader = nil
15441 c.urlParams_.Set("alt", alt)
15442 c.urlParams_.Set("prettyPrint", "false")
15443 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tableDataProfiles")
15444 urls += "?" + c.urlParams_.Encode()
15445 req, err := http.NewRequest("GET", urls, body)
15446 if err != nil {
15447 return nil, err
15448 }
15449 req.Header = reqHeaders
15450 googleapi.Expand(req.URL, map[string]string{
15451 "parent": c.parent,
15452 })
15453 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15454 }
15455
15456
15457
15458
15459
15460
15461
15462 func (c *OrganizationsLocationsTableDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListTableDataProfilesResponse, error) {
15463 gensupport.SetOptions(c.urlParams_, opts...)
15464 res, err := c.doRequest("json")
15465 if res != nil && res.StatusCode == http.StatusNotModified {
15466 if res.Body != nil {
15467 res.Body.Close()
15468 }
15469 return nil, gensupport.WrapError(&googleapi.Error{
15470 Code: res.StatusCode,
15471 Header: res.Header,
15472 })
15473 }
15474 if err != nil {
15475 return nil, err
15476 }
15477 defer googleapi.CloseBody(res)
15478 if err := googleapi.CheckResponse(res); err != nil {
15479 return nil, gensupport.WrapError(err)
15480 }
15481 ret := &GooglePrivacyDlpV2ListTableDataProfilesResponse{
15482 ServerResponse: googleapi.ServerResponse{
15483 Header: res.Header,
15484 HTTPStatusCode: res.StatusCode,
15485 },
15486 }
15487 target := &ret
15488 if err := gensupport.DecodeResponse(target, res); err != nil {
15489 return nil, err
15490 }
15491 return ret, nil
15492 }
15493
15494
15495
15496
15497 func (c *OrganizationsLocationsTableDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListTableDataProfilesResponse) error) error {
15498 c.ctx_ = ctx
15499 defer c.PageToken(c.urlParams_.Get("pageToken"))
15500 for {
15501 x, err := c.Do()
15502 if err != nil {
15503 return err
15504 }
15505 if err := f(x); err != nil {
15506 return err
15507 }
15508 if x.NextPageToken == "" {
15509 return nil
15510 }
15511 c.PageToken(x.NextPageToken)
15512 }
15513 }
15514
15515 type OrganizationsStoredInfoTypesCreateCall struct {
15516 s *Service
15517 parentid string
15518 googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest
15519 urlParams_ gensupport.URLParams
15520 ctx_ context.Context
15521 header_ http.Header
15522 }
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542 func (r *OrganizationsStoredInfoTypesService) Create(parentid string, googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) *OrganizationsStoredInfoTypesCreateCall {
15543 c := &OrganizationsStoredInfoTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15544 c.parentid = parentid
15545 c.googleprivacydlpv2createstoredinfotyperequest = googleprivacydlpv2createstoredinfotyperequest
15546 return c
15547 }
15548
15549
15550
15551
15552 func (c *OrganizationsStoredInfoTypesCreateCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesCreateCall {
15553 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15554 return c
15555 }
15556
15557
15558 func (c *OrganizationsStoredInfoTypesCreateCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesCreateCall {
15559 c.ctx_ = ctx
15560 return c
15561 }
15562
15563
15564
15565 func (c *OrganizationsStoredInfoTypesCreateCall) Header() http.Header {
15566 if c.header_ == nil {
15567 c.header_ = make(http.Header)
15568 }
15569 return c.header_
15570 }
15571
15572 func (c *OrganizationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) {
15573 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15574 var body io.Reader = nil
15575 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createstoredinfotyperequest)
15576 if err != nil {
15577 return nil, err
15578 }
15579 c.urlParams_.Set("alt", alt)
15580 c.urlParams_.Set("prettyPrint", "false")
15581 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
15582 urls += "?" + c.urlParams_.Encode()
15583 req, err := http.NewRequest("POST", urls, body)
15584 if err != nil {
15585 return nil, err
15586 }
15587 req.Header = reqHeaders
15588 googleapi.Expand(req.URL, map[string]string{
15589 "parent": c.parentid,
15590 })
15591 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15592 }
15593
15594
15595
15596
15597
15598
15599
15600 func (c *OrganizationsStoredInfoTypesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
15601 gensupport.SetOptions(c.urlParams_, opts...)
15602 res, err := c.doRequest("json")
15603 if res != nil && res.StatusCode == http.StatusNotModified {
15604 if res.Body != nil {
15605 res.Body.Close()
15606 }
15607 return nil, gensupport.WrapError(&googleapi.Error{
15608 Code: res.StatusCode,
15609 Header: res.Header,
15610 })
15611 }
15612 if err != nil {
15613 return nil, err
15614 }
15615 defer googleapi.CloseBody(res)
15616 if err := googleapi.CheckResponse(res); err != nil {
15617 return nil, gensupport.WrapError(err)
15618 }
15619 ret := &GooglePrivacyDlpV2StoredInfoType{
15620 ServerResponse: googleapi.ServerResponse{
15621 Header: res.Header,
15622 HTTPStatusCode: res.StatusCode,
15623 },
15624 }
15625 target := &ret
15626 if err := gensupport.DecodeResponse(target, res); err != nil {
15627 return nil, err
15628 }
15629 return ret, nil
15630 }
15631
15632 type OrganizationsStoredInfoTypesDeleteCall struct {
15633 s *Service
15634 name string
15635 urlParams_ gensupport.URLParams
15636 ctx_ context.Context
15637 header_ http.Header
15638 }
15639
15640
15641
15642
15643
15644
15645
15646
15647 func (r *OrganizationsStoredInfoTypesService) Delete(name string) *OrganizationsStoredInfoTypesDeleteCall {
15648 c := &OrganizationsStoredInfoTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15649 c.name = name
15650 return c
15651 }
15652
15653
15654
15655
15656 func (c *OrganizationsStoredInfoTypesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesDeleteCall {
15657 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15658 return c
15659 }
15660
15661
15662 func (c *OrganizationsStoredInfoTypesDeleteCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesDeleteCall {
15663 c.ctx_ = ctx
15664 return c
15665 }
15666
15667
15668
15669 func (c *OrganizationsStoredInfoTypesDeleteCall) Header() http.Header {
15670 if c.header_ == nil {
15671 c.header_ = make(http.Header)
15672 }
15673 return c.header_
15674 }
15675
15676 func (c *OrganizationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
15677 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15678 var body io.Reader = nil
15679 c.urlParams_.Set("alt", alt)
15680 c.urlParams_.Set("prettyPrint", "false")
15681 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
15682 urls += "?" + c.urlParams_.Encode()
15683 req, err := http.NewRequest("DELETE", urls, body)
15684 if err != nil {
15685 return nil, err
15686 }
15687 req.Header = reqHeaders
15688 googleapi.Expand(req.URL, map[string]string{
15689 "name": c.name,
15690 })
15691 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15692 }
15693
15694
15695
15696
15697
15698
15699
15700 func (c *OrganizationsStoredInfoTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
15701 gensupport.SetOptions(c.urlParams_, opts...)
15702 res, err := c.doRequest("json")
15703 if res != nil && res.StatusCode == http.StatusNotModified {
15704 if res.Body != nil {
15705 res.Body.Close()
15706 }
15707 return nil, gensupport.WrapError(&googleapi.Error{
15708 Code: res.StatusCode,
15709 Header: res.Header,
15710 })
15711 }
15712 if err != nil {
15713 return nil, err
15714 }
15715 defer googleapi.CloseBody(res)
15716 if err := googleapi.CheckResponse(res); err != nil {
15717 return nil, gensupport.WrapError(err)
15718 }
15719 ret := &GoogleProtobufEmpty{
15720 ServerResponse: googleapi.ServerResponse{
15721 Header: res.Header,
15722 HTTPStatusCode: res.StatusCode,
15723 },
15724 }
15725 target := &ret
15726 if err := gensupport.DecodeResponse(target, res); err != nil {
15727 return nil, err
15728 }
15729 return ret, nil
15730 }
15731
15732 type OrganizationsStoredInfoTypesGetCall struct {
15733 s *Service
15734 name string
15735 urlParams_ gensupport.URLParams
15736 ifNoneMatch_ string
15737 ctx_ context.Context
15738 header_ http.Header
15739 }
15740
15741
15742
15743
15744
15745
15746
15747
15748 func (r *OrganizationsStoredInfoTypesService) Get(name string) *OrganizationsStoredInfoTypesGetCall {
15749 c := &OrganizationsStoredInfoTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15750 c.name = name
15751 return c
15752 }
15753
15754
15755
15756
15757 func (c *OrganizationsStoredInfoTypesGetCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesGetCall {
15758 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15759 return c
15760 }
15761
15762
15763
15764
15765 func (c *OrganizationsStoredInfoTypesGetCall) IfNoneMatch(entityTag string) *OrganizationsStoredInfoTypesGetCall {
15766 c.ifNoneMatch_ = entityTag
15767 return c
15768 }
15769
15770
15771 func (c *OrganizationsStoredInfoTypesGetCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesGetCall {
15772 c.ctx_ = ctx
15773 return c
15774 }
15775
15776
15777
15778 func (c *OrganizationsStoredInfoTypesGetCall) Header() http.Header {
15779 if c.header_ == nil {
15780 c.header_ = make(http.Header)
15781 }
15782 return c.header_
15783 }
15784
15785 func (c *OrganizationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) {
15786 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15787 if c.ifNoneMatch_ != "" {
15788 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15789 }
15790 var body io.Reader = nil
15791 c.urlParams_.Set("alt", alt)
15792 c.urlParams_.Set("prettyPrint", "false")
15793 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
15794 urls += "?" + c.urlParams_.Encode()
15795 req, err := http.NewRequest("GET", urls, body)
15796 if err != nil {
15797 return nil, err
15798 }
15799 req.Header = reqHeaders
15800 googleapi.Expand(req.URL, map[string]string{
15801 "name": c.name,
15802 })
15803 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15804 }
15805
15806
15807
15808
15809
15810
15811
15812 func (c *OrganizationsStoredInfoTypesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
15813 gensupport.SetOptions(c.urlParams_, opts...)
15814 res, err := c.doRequest("json")
15815 if res != nil && res.StatusCode == http.StatusNotModified {
15816 if res.Body != nil {
15817 res.Body.Close()
15818 }
15819 return nil, gensupport.WrapError(&googleapi.Error{
15820 Code: res.StatusCode,
15821 Header: res.Header,
15822 })
15823 }
15824 if err != nil {
15825 return nil, err
15826 }
15827 defer googleapi.CloseBody(res)
15828 if err := googleapi.CheckResponse(res); err != nil {
15829 return nil, gensupport.WrapError(err)
15830 }
15831 ret := &GooglePrivacyDlpV2StoredInfoType{
15832 ServerResponse: googleapi.ServerResponse{
15833 Header: res.Header,
15834 HTTPStatusCode: res.StatusCode,
15835 },
15836 }
15837 target := &ret
15838 if err := gensupport.DecodeResponse(target, res); err != nil {
15839 return nil, err
15840 }
15841 return ret, nil
15842 }
15843
15844 type OrganizationsStoredInfoTypesListCall struct {
15845 s *Service
15846 parentid string
15847 urlParams_ gensupport.URLParams
15848 ifNoneMatch_ string
15849 ctx_ context.Context
15850 header_ http.Header
15851 }
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868 func (r *OrganizationsStoredInfoTypesService) List(parentid string) *OrganizationsStoredInfoTypesListCall {
15869 c := &OrganizationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15870 c.parentid = parentid
15871 return c
15872 }
15873
15874
15875
15876 func (c *OrganizationsStoredInfoTypesListCall) LocationId(locationId string) *OrganizationsStoredInfoTypesListCall {
15877 c.urlParams_.Set("locationId", locationId)
15878 return c
15879 }
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889 func (c *OrganizationsStoredInfoTypesListCall) OrderBy(orderBy string) *OrganizationsStoredInfoTypesListCall {
15890 c.urlParams_.Set("orderBy", orderBy)
15891 return c
15892 }
15893
15894
15895
15896
15897 func (c *OrganizationsStoredInfoTypesListCall) PageSize(pageSize int64) *OrganizationsStoredInfoTypesListCall {
15898 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15899 return c
15900 }
15901
15902
15903
15904 func (c *OrganizationsStoredInfoTypesListCall) PageToken(pageToken string) *OrganizationsStoredInfoTypesListCall {
15905 c.urlParams_.Set("pageToken", pageToken)
15906 return c
15907 }
15908
15909
15910
15911
15912 func (c *OrganizationsStoredInfoTypesListCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesListCall {
15913 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15914 return c
15915 }
15916
15917
15918
15919
15920 func (c *OrganizationsStoredInfoTypesListCall) IfNoneMatch(entityTag string) *OrganizationsStoredInfoTypesListCall {
15921 c.ifNoneMatch_ = entityTag
15922 return c
15923 }
15924
15925
15926 func (c *OrganizationsStoredInfoTypesListCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesListCall {
15927 c.ctx_ = ctx
15928 return c
15929 }
15930
15931
15932
15933 func (c *OrganizationsStoredInfoTypesListCall) Header() http.Header {
15934 if c.header_ == nil {
15935 c.header_ = make(http.Header)
15936 }
15937 return c.header_
15938 }
15939
15940 func (c *OrganizationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
15941 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15942 if c.ifNoneMatch_ != "" {
15943 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15944 }
15945 var body io.Reader = nil
15946 c.urlParams_.Set("alt", alt)
15947 c.urlParams_.Set("prettyPrint", "false")
15948 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
15949 urls += "?" + c.urlParams_.Encode()
15950 req, err := http.NewRequest("GET", urls, body)
15951 if err != nil {
15952 return nil, err
15953 }
15954 req.Header = reqHeaders
15955 googleapi.Expand(req.URL, map[string]string{
15956 "parent": c.parentid,
15957 })
15958 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15959 }
15960
15961
15962
15963
15964
15965
15966
15967 func (c *OrganizationsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListStoredInfoTypesResponse, error) {
15968 gensupport.SetOptions(c.urlParams_, opts...)
15969 res, err := c.doRequest("json")
15970 if res != nil && res.StatusCode == http.StatusNotModified {
15971 if res.Body != nil {
15972 res.Body.Close()
15973 }
15974 return nil, gensupport.WrapError(&googleapi.Error{
15975 Code: res.StatusCode,
15976 Header: res.Header,
15977 })
15978 }
15979 if err != nil {
15980 return nil, err
15981 }
15982 defer googleapi.CloseBody(res)
15983 if err := googleapi.CheckResponse(res); err != nil {
15984 return nil, gensupport.WrapError(err)
15985 }
15986 ret := &GooglePrivacyDlpV2ListStoredInfoTypesResponse{
15987 ServerResponse: googleapi.ServerResponse{
15988 Header: res.Header,
15989 HTTPStatusCode: res.StatusCode,
15990 },
15991 }
15992 target := &ret
15993 if err := gensupport.DecodeResponse(target, res); err != nil {
15994 return nil, err
15995 }
15996 return ret, nil
15997 }
15998
15999
16000
16001
16002 func (c *OrganizationsStoredInfoTypesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListStoredInfoTypesResponse) error) error {
16003 c.ctx_ = ctx
16004 defer c.PageToken(c.urlParams_.Get("pageToken"))
16005 for {
16006 x, err := c.Do()
16007 if err != nil {
16008 return err
16009 }
16010 if err := f(x); err != nil {
16011 return err
16012 }
16013 if x.NextPageToken == "" {
16014 return nil
16015 }
16016 c.PageToken(x.NextPageToken)
16017 }
16018 }
16019
16020 type OrganizationsStoredInfoTypesPatchCall struct {
16021 s *Service
16022 name string
16023 googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
16024 urlParams_ gensupport.URLParams
16025 ctx_ context.Context
16026 header_ http.Header
16027 }
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037 func (r *OrganizationsStoredInfoTypesService) Patch(name string, googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) *OrganizationsStoredInfoTypesPatchCall {
16038 c := &OrganizationsStoredInfoTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16039 c.name = name
16040 c.googleprivacydlpv2updatestoredinfotyperequest = googleprivacydlpv2updatestoredinfotyperequest
16041 return c
16042 }
16043
16044
16045
16046
16047 func (c *OrganizationsStoredInfoTypesPatchCall) Fields(s ...googleapi.Field) *OrganizationsStoredInfoTypesPatchCall {
16048 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16049 return c
16050 }
16051
16052
16053 func (c *OrganizationsStoredInfoTypesPatchCall) Context(ctx context.Context) *OrganizationsStoredInfoTypesPatchCall {
16054 c.ctx_ = ctx
16055 return c
16056 }
16057
16058
16059
16060 func (c *OrganizationsStoredInfoTypesPatchCall) Header() http.Header {
16061 if c.header_ == nil {
16062 c.header_ = make(http.Header)
16063 }
16064 return c.header_
16065 }
16066
16067 func (c *OrganizationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) {
16068 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16069 var body io.Reader = nil
16070 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatestoredinfotyperequest)
16071 if err != nil {
16072 return nil, err
16073 }
16074 c.urlParams_.Set("alt", alt)
16075 c.urlParams_.Set("prettyPrint", "false")
16076 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
16077 urls += "?" + c.urlParams_.Encode()
16078 req, err := http.NewRequest("PATCH", urls, body)
16079 if err != nil {
16080 return nil, err
16081 }
16082 req.Header = reqHeaders
16083 googleapi.Expand(req.URL, map[string]string{
16084 "name": c.name,
16085 })
16086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16087 }
16088
16089
16090
16091
16092
16093
16094
16095 func (c *OrganizationsStoredInfoTypesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
16096 gensupport.SetOptions(c.urlParams_, opts...)
16097 res, err := c.doRequest("json")
16098 if res != nil && res.StatusCode == http.StatusNotModified {
16099 if res.Body != nil {
16100 res.Body.Close()
16101 }
16102 return nil, gensupport.WrapError(&googleapi.Error{
16103 Code: res.StatusCode,
16104 Header: res.Header,
16105 })
16106 }
16107 if err != nil {
16108 return nil, err
16109 }
16110 defer googleapi.CloseBody(res)
16111 if err := googleapi.CheckResponse(res); err != nil {
16112 return nil, gensupport.WrapError(err)
16113 }
16114 ret := &GooglePrivacyDlpV2StoredInfoType{
16115 ServerResponse: googleapi.ServerResponse{
16116 Header: res.Header,
16117 HTTPStatusCode: res.StatusCode,
16118 },
16119 }
16120 target := &ret
16121 if err := gensupport.DecodeResponse(target, res); err != nil {
16122 return nil, err
16123 }
16124 return ret, nil
16125 }
16126
16127 type ProjectsContentDeidentifyCall struct {
16128 s *Service
16129 parentid string
16130 googleprivacydlpv2deidentifycontentrequest *GooglePrivacyDlpV2DeidentifyContentRequest
16131 urlParams_ gensupport.URLParams
16132 ctx_ context.Context
16133 header_ http.Header
16134 }
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154 func (r *ProjectsContentService) Deidentify(parentid string, googleprivacydlpv2deidentifycontentrequest *GooglePrivacyDlpV2DeidentifyContentRequest) *ProjectsContentDeidentifyCall {
16155 c := &ProjectsContentDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16156 c.parentid = parentid
16157 c.googleprivacydlpv2deidentifycontentrequest = googleprivacydlpv2deidentifycontentrequest
16158 return c
16159 }
16160
16161
16162
16163
16164 func (c *ProjectsContentDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsContentDeidentifyCall {
16165 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16166 return c
16167 }
16168
16169
16170 func (c *ProjectsContentDeidentifyCall) Context(ctx context.Context) *ProjectsContentDeidentifyCall {
16171 c.ctx_ = ctx
16172 return c
16173 }
16174
16175
16176
16177 func (c *ProjectsContentDeidentifyCall) Header() http.Header {
16178 if c.header_ == nil {
16179 c.header_ = make(http.Header)
16180 }
16181 return c.header_
16182 }
16183
16184 func (c *ProjectsContentDeidentifyCall) doRequest(alt string) (*http.Response, error) {
16185 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16186 var body io.Reader = nil
16187 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2deidentifycontentrequest)
16188 if err != nil {
16189 return nil, err
16190 }
16191 c.urlParams_.Set("alt", alt)
16192 c.urlParams_.Set("prettyPrint", "false")
16193 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:deidentify")
16194 urls += "?" + c.urlParams_.Encode()
16195 req, err := http.NewRequest("POST", urls, body)
16196 if err != nil {
16197 return nil, err
16198 }
16199 req.Header = reqHeaders
16200 googleapi.Expand(req.URL, map[string]string{
16201 "parent": c.parentid,
16202 })
16203 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16204 }
16205
16206
16207
16208
16209
16210
16211
16212 func (c *ProjectsContentDeidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyContentResponse, error) {
16213 gensupport.SetOptions(c.urlParams_, opts...)
16214 res, err := c.doRequest("json")
16215 if res != nil && res.StatusCode == http.StatusNotModified {
16216 if res.Body != nil {
16217 res.Body.Close()
16218 }
16219 return nil, gensupport.WrapError(&googleapi.Error{
16220 Code: res.StatusCode,
16221 Header: res.Header,
16222 })
16223 }
16224 if err != nil {
16225 return nil, err
16226 }
16227 defer googleapi.CloseBody(res)
16228 if err := googleapi.CheckResponse(res); err != nil {
16229 return nil, gensupport.WrapError(err)
16230 }
16231 ret := &GooglePrivacyDlpV2DeidentifyContentResponse{
16232 ServerResponse: googleapi.ServerResponse{
16233 Header: res.Header,
16234 HTTPStatusCode: res.StatusCode,
16235 },
16236 }
16237 target := &ret
16238 if err := gensupport.DecodeResponse(target, res); err != nil {
16239 return nil, err
16240 }
16241 return ret, nil
16242 }
16243
16244 type ProjectsContentInspectCall struct {
16245 s *Service
16246 parentid string
16247 googleprivacydlpv2inspectcontentrequest *GooglePrivacyDlpV2InspectContentRequest
16248 urlParams_ gensupport.URLParams
16249 ctx_ context.Context
16250 header_ http.Header
16251 }
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271 func (r *ProjectsContentService) Inspect(parentid string, googleprivacydlpv2inspectcontentrequest *GooglePrivacyDlpV2InspectContentRequest) *ProjectsContentInspectCall {
16272 c := &ProjectsContentInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16273 c.parentid = parentid
16274 c.googleprivacydlpv2inspectcontentrequest = googleprivacydlpv2inspectcontentrequest
16275 return c
16276 }
16277
16278
16279
16280
16281 func (c *ProjectsContentInspectCall) Fields(s ...googleapi.Field) *ProjectsContentInspectCall {
16282 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16283 return c
16284 }
16285
16286
16287 func (c *ProjectsContentInspectCall) Context(ctx context.Context) *ProjectsContentInspectCall {
16288 c.ctx_ = ctx
16289 return c
16290 }
16291
16292
16293
16294 func (c *ProjectsContentInspectCall) Header() http.Header {
16295 if c.header_ == nil {
16296 c.header_ = make(http.Header)
16297 }
16298 return c.header_
16299 }
16300
16301 func (c *ProjectsContentInspectCall) doRequest(alt string) (*http.Response, error) {
16302 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16303 var body io.Reader = nil
16304 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2inspectcontentrequest)
16305 if err != nil {
16306 return nil, err
16307 }
16308 c.urlParams_.Set("alt", alt)
16309 c.urlParams_.Set("prettyPrint", "false")
16310 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:inspect")
16311 urls += "?" + c.urlParams_.Encode()
16312 req, err := http.NewRequest("POST", urls, body)
16313 if err != nil {
16314 return nil, err
16315 }
16316 req.Header = reqHeaders
16317 googleapi.Expand(req.URL, map[string]string{
16318 "parent": c.parentid,
16319 })
16320 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16321 }
16322
16323
16324
16325
16326
16327
16328
16329 func (c *ProjectsContentInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectContentResponse, error) {
16330 gensupport.SetOptions(c.urlParams_, opts...)
16331 res, err := c.doRequest("json")
16332 if res != nil && res.StatusCode == http.StatusNotModified {
16333 if res.Body != nil {
16334 res.Body.Close()
16335 }
16336 return nil, gensupport.WrapError(&googleapi.Error{
16337 Code: res.StatusCode,
16338 Header: res.Header,
16339 })
16340 }
16341 if err != nil {
16342 return nil, err
16343 }
16344 defer googleapi.CloseBody(res)
16345 if err := googleapi.CheckResponse(res); err != nil {
16346 return nil, gensupport.WrapError(err)
16347 }
16348 ret := &GooglePrivacyDlpV2InspectContentResponse{
16349 ServerResponse: googleapi.ServerResponse{
16350 Header: res.Header,
16351 HTTPStatusCode: res.StatusCode,
16352 },
16353 }
16354 target := &ret
16355 if err := gensupport.DecodeResponse(target, res); err != nil {
16356 return nil, err
16357 }
16358 return ret, nil
16359 }
16360
16361 type ProjectsContentReidentifyCall struct {
16362 s *Service
16363 parentid string
16364 googleprivacydlpv2reidentifycontentrequest *GooglePrivacyDlpV2ReidentifyContentRequest
16365 urlParams_ gensupport.URLParams
16366 ctx_ context.Context
16367 header_ http.Header
16368 }
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384 func (r *ProjectsContentService) Reidentify(parentid string, googleprivacydlpv2reidentifycontentrequest *GooglePrivacyDlpV2ReidentifyContentRequest) *ProjectsContentReidentifyCall {
16385 c := &ProjectsContentReidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16386 c.parentid = parentid
16387 c.googleprivacydlpv2reidentifycontentrequest = googleprivacydlpv2reidentifycontentrequest
16388 return c
16389 }
16390
16391
16392
16393
16394 func (c *ProjectsContentReidentifyCall) Fields(s ...googleapi.Field) *ProjectsContentReidentifyCall {
16395 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16396 return c
16397 }
16398
16399
16400 func (c *ProjectsContentReidentifyCall) Context(ctx context.Context) *ProjectsContentReidentifyCall {
16401 c.ctx_ = ctx
16402 return c
16403 }
16404
16405
16406
16407 func (c *ProjectsContentReidentifyCall) Header() http.Header {
16408 if c.header_ == nil {
16409 c.header_ = make(http.Header)
16410 }
16411 return c.header_
16412 }
16413
16414 func (c *ProjectsContentReidentifyCall) doRequest(alt string) (*http.Response, error) {
16415 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16416 var body io.Reader = nil
16417 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2reidentifycontentrequest)
16418 if err != nil {
16419 return nil, err
16420 }
16421 c.urlParams_.Set("alt", alt)
16422 c.urlParams_.Set("prettyPrint", "false")
16423 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:reidentify")
16424 urls += "?" + c.urlParams_.Encode()
16425 req, err := http.NewRequest("POST", urls, body)
16426 if err != nil {
16427 return nil, err
16428 }
16429 req.Header = reqHeaders
16430 googleapi.Expand(req.URL, map[string]string{
16431 "parent": c.parentid,
16432 })
16433 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16434 }
16435
16436
16437
16438
16439
16440
16441
16442 func (c *ProjectsContentReidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ReidentifyContentResponse, error) {
16443 gensupport.SetOptions(c.urlParams_, opts...)
16444 res, err := c.doRequest("json")
16445 if res != nil && res.StatusCode == http.StatusNotModified {
16446 if res.Body != nil {
16447 res.Body.Close()
16448 }
16449 return nil, gensupport.WrapError(&googleapi.Error{
16450 Code: res.StatusCode,
16451 Header: res.Header,
16452 })
16453 }
16454 if err != nil {
16455 return nil, err
16456 }
16457 defer googleapi.CloseBody(res)
16458 if err := googleapi.CheckResponse(res); err != nil {
16459 return nil, gensupport.WrapError(err)
16460 }
16461 ret := &GooglePrivacyDlpV2ReidentifyContentResponse{
16462 ServerResponse: googleapi.ServerResponse{
16463 Header: res.Header,
16464 HTTPStatusCode: res.StatusCode,
16465 },
16466 }
16467 target := &ret
16468 if err := gensupport.DecodeResponse(target, res); err != nil {
16469 return nil, err
16470 }
16471 return ret, nil
16472 }
16473
16474 type ProjectsDeidentifyTemplatesCreateCall struct {
16475 s *Service
16476 parentid string
16477 googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
16478 urlParams_ gensupport.URLParams
16479 ctx_ context.Context
16480 header_ http.Header
16481 }
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502 func (r *ProjectsDeidentifyTemplatesService) Create(parentid string, googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) *ProjectsDeidentifyTemplatesCreateCall {
16503 c := &ProjectsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16504 c.parentid = parentid
16505 c.googleprivacydlpv2createdeidentifytemplaterequest = googleprivacydlpv2createdeidentifytemplaterequest
16506 return c
16507 }
16508
16509
16510
16511
16512 func (c *ProjectsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesCreateCall {
16513 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16514 return c
16515 }
16516
16517
16518 func (c *ProjectsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesCreateCall {
16519 c.ctx_ = ctx
16520 return c
16521 }
16522
16523
16524
16525 func (c *ProjectsDeidentifyTemplatesCreateCall) Header() http.Header {
16526 if c.header_ == nil {
16527 c.header_ = make(http.Header)
16528 }
16529 return c.header_
16530 }
16531
16532 func (c *ProjectsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
16533 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16534 var body io.Reader = nil
16535 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdeidentifytemplaterequest)
16536 if err != nil {
16537 return nil, err
16538 }
16539 c.urlParams_.Set("alt", alt)
16540 c.urlParams_.Set("prettyPrint", "false")
16541 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
16542 urls += "?" + c.urlParams_.Encode()
16543 req, err := http.NewRequest("POST", urls, body)
16544 if err != nil {
16545 return nil, err
16546 }
16547 req.Header = reqHeaders
16548 googleapi.Expand(req.URL, map[string]string{
16549 "parent": c.parentid,
16550 })
16551 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16552 }
16553
16554
16555
16556
16557
16558
16559
16560 func (c *ProjectsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
16561 gensupport.SetOptions(c.urlParams_, opts...)
16562 res, err := c.doRequest("json")
16563 if res != nil && res.StatusCode == http.StatusNotModified {
16564 if res.Body != nil {
16565 res.Body.Close()
16566 }
16567 return nil, gensupport.WrapError(&googleapi.Error{
16568 Code: res.StatusCode,
16569 Header: res.Header,
16570 })
16571 }
16572 if err != nil {
16573 return nil, err
16574 }
16575 defer googleapi.CloseBody(res)
16576 if err := googleapi.CheckResponse(res); err != nil {
16577 return nil, gensupport.WrapError(err)
16578 }
16579 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
16580 ServerResponse: googleapi.ServerResponse{
16581 Header: res.Header,
16582 HTTPStatusCode: res.StatusCode,
16583 },
16584 }
16585 target := &ret
16586 if err := gensupport.DecodeResponse(target, res); err != nil {
16587 return nil, err
16588 }
16589 return ret, nil
16590 }
16591
16592 type ProjectsDeidentifyTemplatesDeleteCall struct {
16593 s *Service
16594 name string
16595 urlParams_ gensupport.URLParams
16596 ctx_ context.Context
16597 header_ http.Header
16598 }
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608 func (r *ProjectsDeidentifyTemplatesService) Delete(name string) *ProjectsDeidentifyTemplatesDeleteCall {
16609 c := &ProjectsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16610 c.name = name
16611 return c
16612 }
16613
16614
16615
16616
16617 func (c *ProjectsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesDeleteCall {
16618 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16619 return c
16620 }
16621
16622
16623 func (c *ProjectsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesDeleteCall {
16624 c.ctx_ = ctx
16625 return c
16626 }
16627
16628
16629
16630 func (c *ProjectsDeidentifyTemplatesDeleteCall) Header() http.Header {
16631 if c.header_ == nil {
16632 c.header_ = make(http.Header)
16633 }
16634 return c.header_
16635 }
16636
16637 func (c *ProjectsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
16638 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16639 var body io.Reader = nil
16640 c.urlParams_.Set("alt", alt)
16641 c.urlParams_.Set("prettyPrint", "false")
16642 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
16643 urls += "?" + c.urlParams_.Encode()
16644 req, err := http.NewRequest("DELETE", urls, body)
16645 if err != nil {
16646 return nil, err
16647 }
16648 req.Header = reqHeaders
16649 googleapi.Expand(req.URL, map[string]string{
16650 "name": c.name,
16651 })
16652 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16653 }
16654
16655
16656
16657
16658
16659
16660
16661 func (c *ProjectsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
16662 gensupport.SetOptions(c.urlParams_, opts...)
16663 res, err := c.doRequest("json")
16664 if res != nil && res.StatusCode == http.StatusNotModified {
16665 if res.Body != nil {
16666 res.Body.Close()
16667 }
16668 return nil, gensupport.WrapError(&googleapi.Error{
16669 Code: res.StatusCode,
16670 Header: res.Header,
16671 })
16672 }
16673 if err != nil {
16674 return nil, err
16675 }
16676 defer googleapi.CloseBody(res)
16677 if err := googleapi.CheckResponse(res); err != nil {
16678 return nil, gensupport.WrapError(err)
16679 }
16680 ret := &GoogleProtobufEmpty{
16681 ServerResponse: googleapi.ServerResponse{
16682 Header: res.Header,
16683 HTTPStatusCode: res.StatusCode,
16684 },
16685 }
16686 target := &ret
16687 if err := gensupport.DecodeResponse(target, res); err != nil {
16688 return nil, err
16689 }
16690 return ret, nil
16691 }
16692
16693 type ProjectsDeidentifyTemplatesGetCall struct {
16694 s *Service
16695 name string
16696 urlParams_ gensupport.URLParams
16697 ifNoneMatch_ string
16698 ctx_ context.Context
16699 header_ http.Header
16700 }
16701
16702
16703
16704
16705
16706
16707
16708
16709 func (r *ProjectsDeidentifyTemplatesService) Get(name string) *ProjectsDeidentifyTemplatesGetCall {
16710 c := &ProjectsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16711 c.name = name
16712 return c
16713 }
16714
16715
16716
16717
16718 func (c *ProjectsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesGetCall {
16719 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16720 return c
16721 }
16722
16723
16724
16725
16726 func (c *ProjectsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsDeidentifyTemplatesGetCall {
16727 c.ifNoneMatch_ = entityTag
16728 return c
16729 }
16730
16731
16732 func (c *ProjectsDeidentifyTemplatesGetCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesGetCall {
16733 c.ctx_ = ctx
16734 return c
16735 }
16736
16737
16738
16739 func (c *ProjectsDeidentifyTemplatesGetCall) Header() http.Header {
16740 if c.header_ == nil {
16741 c.header_ = make(http.Header)
16742 }
16743 return c.header_
16744 }
16745
16746 func (c *ProjectsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
16747 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16748 if c.ifNoneMatch_ != "" {
16749 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16750 }
16751 var body io.Reader = nil
16752 c.urlParams_.Set("alt", alt)
16753 c.urlParams_.Set("prettyPrint", "false")
16754 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
16755 urls += "?" + c.urlParams_.Encode()
16756 req, err := http.NewRequest("GET", urls, body)
16757 if err != nil {
16758 return nil, err
16759 }
16760 req.Header = reqHeaders
16761 googleapi.Expand(req.URL, map[string]string{
16762 "name": c.name,
16763 })
16764 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16765 }
16766
16767
16768
16769
16770
16771
16772
16773 func (c *ProjectsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
16774 gensupport.SetOptions(c.urlParams_, opts...)
16775 res, err := c.doRequest("json")
16776 if res != nil && res.StatusCode == http.StatusNotModified {
16777 if res.Body != nil {
16778 res.Body.Close()
16779 }
16780 return nil, gensupport.WrapError(&googleapi.Error{
16781 Code: res.StatusCode,
16782 Header: res.Header,
16783 })
16784 }
16785 if err != nil {
16786 return nil, err
16787 }
16788 defer googleapi.CloseBody(res)
16789 if err := googleapi.CheckResponse(res); err != nil {
16790 return nil, gensupport.WrapError(err)
16791 }
16792 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
16793 ServerResponse: googleapi.ServerResponse{
16794 Header: res.Header,
16795 HTTPStatusCode: res.StatusCode,
16796 },
16797 }
16798 target := &ret
16799 if err := gensupport.DecodeResponse(target, res); err != nil {
16800 return nil, err
16801 }
16802 return ret, nil
16803 }
16804
16805 type ProjectsDeidentifyTemplatesListCall struct {
16806 s *Service
16807 parentid string
16808 urlParams_ gensupport.URLParams
16809 ifNoneMatch_ string
16810 ctx_ context.Context
16811 header_ http.Header
16812 }
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832 func (r *ProjectsDeidentifyTemplatesService) List(parentid string) *ProjectsDeidentifyTemplatesListCall {
16833 c := &ProjectsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16834 c.parentid = parentid
16835 return c
16836 }
16837
16838
16839
16840 func (c *ProjectsDeidentifyTemplatesListCall) LocationId(locationId string) *ProjectsDeidentifyTemplatesListCall {
16841 c.urlParams_.Set("locationId", locationId)
16842 return c
16843 }
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853 func (c *ProjectsDeidentifyTemplatesListCall) OrderBy(orderBy string) *ProjectsDeidentifyTemplatesListCall {
16854 c.urlParams_.Set("orderBy", orderBy)
16855 return c
16856 }
16857
16858
16859
16860
16861 func (c *ProjectsDeidentifyTemplatesListCall) PageSize(pageSize int64) *ProjectsDeidentifyTemplatesListCall {
16862 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16863 return c
16864 }
16865
16866
16867
16868 func (c *ProjectsDeidentifyTemplatesListCall) PageToken(pageToken string) *ProjectsDeidentifyTemplatesListCall {
16869 c.urlParams_.Set("pageToken", pageToken)
16870 return c
16871 }
16872
16873
16874
16875
16876 func (c *ProjectsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesListCall {
16877 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16878 return c
16879 }
16880
16881
16882
16883
16884 func (c *ProjectsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsDeidentifyTemplatesListCall {
16885 c.ifNoneMatch_ = entityTag
16886 return c
16887 }
16888
16889
16890 func (c *ProjectsDeidentifyTemplatesListCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesListCall {
16891 c.ctx_ = ctx
16892 return c
16893 }
16894
16895
16896
16897 func (c *ProjectsDeidentifyTemplatesListCall) Header() http.Header {
16898 if c.header_ == nil {
16899 c.header_ = make(http.Header)
16900 }
16901 return c.header_
16902 }
16903
16904 func (c *ProjectsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
16905 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16906 if c.ifNoneMatch_ != "" {
16907 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16908 }
16909 var body io.Reader = nil
16910 c.urlParams_.Set("alt", alt)
16911 c.urlParams_.Set("prettyPrint", "false")
16912 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
16913 urls += "?" + c.urlParams_.Encode()
16914 req, err := http.NewRequest("GET", urls, body)
16915 if err != nil {
16916 return nil, err
16917 }
16918 req.Header = reqHeaders
16919 googleapi.Expand(req.URL, map[string]string{
16920 "parent": c.parentid,
16921 })
16922 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16923 }
16924
16925
16926
16927
16928
16929
16930
16931 func (c *ProjectsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse, error) {
16932 gensupport.SetOptions(c.urlParams_, opts...)
16933 res, err := c.doRequest("json")
16934 if res != nil && res.StatusCode == http.StatusNotModified {
16935 if res.Body != nil {
16936 res.Body.Close()
16937 }
16938 return nil, gensupport.WrapError(&googleapi.Error{
16939 Code: res.StatusCode,
16940 Header: res.Header,
16941 })
16942 }
16943 if err != nil {
16944 return nil, err
16945 }
16946 defer googleapi.CloseBody(res)
16947 if err := googleapi.CheckResponse(res); err != nil {
16948 return nil, gensupport.WrapError(err)
16949 }
16950 ret := &GooglePrivacyDlpV2ListDeidentifyTemplatesResponse{
16951 ServerResponse: googleapi.ServerResponse{
16952 Header: res.Header,
16953 HTTPStatusCode: res.StatusCode,
16954 },
16955 }
16956 target := &ret
16957 if err := gensupport.DecodeResponse(target, res); err != nil {
16958 return nil, err
16959 }
16960 return ret, nil
16961 }
16962
16963
16964
16965
16966 func (c *ProjectsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) error) error {
16967 c.ctx_ = ctx
16968 defer c.PageToken(c.urlParams_.Get("pageToken"))
16969 for {
16970 x, err := c.Do()
16971 if err != nil {
16972 return err
16973 }
16974 if err := f(x); err != nil {
16975 return err
16976 }
16977 if x.NextPageToken == "" {
16978 return nil
16979 }
16980 c.PageToken(x.NextPageToken)
16981 }
16982 }
16983
16984 type ProjectsDeidentifyTemplatesPatchCall struct {
16985 s *Service
16986 name string
16987 googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
16988 urlParams_ gensupport.URLParams
16989 ctx_ context.Context
16990 header_ http.Header
16991 }
16992
16993
16994
16995
16996
16997
16998
16999
17000 func (r *ProjectsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) *ProjectsDeidentifyTemplatesPatchCall {
17001 c := &ProjectsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17002 c.name = name
17003 c.googleprivacydlpv2updatedeidentifytemplaterequest = googleprivacydlpv2updatedeidentifytemplaterequest
17004 return c
17005 }
17006
17007
17008
17009
17010 func (c *ProjectsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsDeidentifyTemplatesPatchCall {
17011 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17012 return c
17013 }
17014
17015
17016 func (c *ProjectsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *ProjectsDeidentifyTemplatesPatchCall {
17017 c.ctx_ = ctx
17018 return c
17019 }
17020
17021
17022
17023 func (c *ProjectsDeidentifyTemplatesPatchCall) Header() http.Header {
17024 if c.header_ == nil {
17025 c.header_ = make(http.Header)
17026 }
17027 return c.header_
17028 }
17029
17030 func (c *ProjectsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
17031 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17032 var body io.Reader = nil
17033 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatedeidentifytemplaterequest)
17034 if err != nil {
17035 return nil, err
17036 }
17037 c.urlParams_.Set("alt", alt)
17038 c.urlParams_.Set("prettyPrint", "false")
17039 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
17040 urls += "?" + c.urlParams_.Encode()
17041 req, err := http.NewRequest("PATCH", urls, body)
17042 if err != nil {
17043 return nil, err
17044 }
17045 req.Header = reqHeaders
17046 googleapi.Expand(req.URL, map[string]string{
17047 "name": c.name,
17048 })
17049 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17050 }
17051
17052
17053
17054
17055
17056
17057
17058 func (c *ProjectsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
17059 gensupport.SetOptions(c.urlParams_, opts...)
17060 res, err := c.doRequest("json")
17061 if res != nil && res.StatusCode == http.StatusNotModified {
17062 if res.Body != nil {
17063 res.Body.Close()
17064 }
17065 return nil, gensupport.WrapError(&googleapi.Error{
17066 Code: res.StatusCode,
17067 Header: res.Header,
17068 })
17069 }
17070 if err != nil {
17071 return nil, err
17072 }
17073 defer googleapi.CloseBody(res)
17074 if err := googleapi.CheckResponse(res); err != nil {
17075 return nil, gensupport.WrapError(err)
17076 }
17077 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
17078 ServerResponse: googleapi.ServerResponse{
17079 Header: res.Header,
17080 HTTPStatusCode: res.StatusCode,
17081 },
17082 }
17083 target := &ret
17084 if err := gensupport.DecodeResponse(target, res); err != nil {
17085 return nil, err
17086 }
17087 return ret, nil
17088 }
17089
17090 type ProjectsDlpJobsCancelCall struct {
17091 s *Service
17092 name string
17093 googleprivacydlpv2canceldlpjobrequest *GooglePrivacyDlpV2CancelDlpJobRequest
17094 urlParams_ gensupport.URLParams
17095 ctx_ context.Context
17096 header_ http.Header
17097 }
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108 func (r *ProjectsDlpJobsService) Cancel(name string, googleprivacydlpv2canceldlpjobrequest *GooglePrivacyDlpV2CancelDlpJobRequest) *ProjectsDlpJobsCancelCall {
17109 c := &ProjectsDlpJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17110 c.name = name
17111 c.googleprivacydlpv2canceldlpjobrequest = googleprivacydlpv2canceldlpjobrequest
17112 return c
17113 }
17114
17115
17116
17117
17118 func (c *ProjectsDlpJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsCancelCall {
17119 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17120 return c
17121 }
17122
17123
17124 func (c *ProjectsDlpJobsCancelCall) Context(ctx context.Context) *ProjectsDlpJobsCancelCall {
17125 c.ctx_ = ctx
17126 return c
17127 }
17128
17129
17130
17131 func (c *ProjectsDlpJobsCancelCall) Header() http.Header {
17132 if c.header_ == nil {
17133 c.header_ = make(http.Header)
17134 }
17135 return c.header_
17136 }
17137
17138 func (c *ProjectsDlpJobsCancelCall) doRequest(alt string) (*http.Response, error) {
17139 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17140 var body io.Reader = nil
17141 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2canceldlpjobrequest)
17142 if err != nil {
17143 return nil, err
17144 }
17145 c.urlParams_.Set("alt", alt)
17146 c.urlParams_.Set("prettyPrint", "false")
17147 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
17148 urls += "?" + c.urlParams_.Encode()
17149 req, err := http.NewRequest("POST", urls, body)
17150 if err != nil {
17151 return nil, err
17152 }
17153 req.Header = reqHeaders
17154 googleapi.Expand(req.URL, map[string]string{
17155 "name": c.name,
17156 })
17157 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17158 }
17159
17160
17161
17162
17163
17164
17165
17166 func (c *ProjectsDlpJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
17167 gensupport.SetOptions(c.urlParams_, opts...)
17168 res, err := c.doRequest("json")
17169 if res != nil && res.StatusCode == http.StatusNotModified {
17170 if res.Body != nil {
17171 res.Body.Close()
17172 }
17173 return nil, gensupport.WrapError(&googleapi.Error{
17174 Code: res.StatusCode,
17175 Header: res.Header,
17176 })
17177 }
17178 if err != nil {
17179 return nil, err
17180 }
17181 defer googleapi.CloseBody(res)
17182 if err := googleapi.CheckResponse(res); err != nil {
17183 return nil, gensupport.WrapError(err)
17184 }
17185 ret := &GoogleProtobufEmpty{
17186 ServerResponse: googleapi.ServerResponse{
17187 Header: res.Header,
17188 HTTPStatusCode: res.StatusCode,
17189 },
17190 }
17191 target := &ret
17192 if err := gensupport.DecodeResponse(target, res); err != nil {
17193 return nil, err
17194 }
17195 return ret, nil
17196 }
17197
17198 type ProjectsDlpJobsCreateCall struct {
17199 s *Service
17200 parentid string
17201 googleprivacydlpv2createdlpjobrequest *GooglePrivacyDlpV2CreateDlpJobRequest
17202 urlParams_ gensupport.URLParams
17203 ctx_ context.Context
17204 header_ http.Header
17205 }
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225 func (r *ProjectsDlpJobsService) Create(parentid string, googleprivacydlpv2createdlpjobrequest *GooglePrivacyDlpV2CreateDlpJobRequest) *ProjectsDlpJobsCreateCall {
17226 c := &ProjectsDlpJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17227 c.parentid = parentid
17228 c.googleprivacydlpv2createdlpjobrequest = googleprivacydlpv2createdlpjobrequest
17229 return c
17230 }
17231
17232
17233
17234
17235 func (c *ProjectsDlpJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsCreateCall {
17236 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17237 return c
17238 }
17239
17240
17241 func (c *ProjectsDlpJobsCreateCall) Context(ctx context.Context) *ProjectsDlpJobsCreateCall {
17242 c.ctx_ = ctx
17243 return c
17244 }
17245
17246
17247
17248 func (c *ProjectsDlpJobsCreateCall) Header() http.Header {
17249 if c.header_ == nil {
17250 c.header_ = make(http.Header)
17251 }
17252 return c.header_
17253 }
17254
17255 func (c *ProjectsDlpJobsCreateCall) doRequest(alt string) (*http.Response, error) {
17256 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17257 var body io.Reader = nil
17258 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdlpjobrequest)
17259 if err != nil {
17260 return nil, err
17261 }
17262 c.urlParams_.Set("alt", alt)
17263 c.urlParams_.Set("prettyPrint", "false")
17264 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
17265 urls += "?" + c.urlParams_.Encode()
17266 req, err := http.NewRequest("POST", urls, body)
17267 if err != nil {
17268 return nil, err
17269 }
17270 req.Header = reqHeaders
17271 googleapi.Expand(req.URL, map[string]string{
17272 "parent": c.parentid,
17273 })
17274 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17275 }
17276
17277
17278
17279
17280
17281
17282
17283 func (c *ProjectsDlpJobsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
17284 gensupport.SetOptions(c.urlParams_, opts...)
17285 res, err := c.doRequest("json")
17286 if res != nil && res.StatusCode == http.StatusNotModified {
17287 if res.Body != nil {
17288 res.Body.Close()
17289 }
17290 return nil, gensupport.WrapError(&googleapi.Error{
17291 Code: res.StatusCode,
17292 Header: res.Header,
17293 })
17294 }
17295 if err != nil {
17296 return nil, err
17297 }
17298 defer googleapi.CloseBody(res)
17299 if err := googleapi.CheckResponse(res); err != nil {
17300 return nil, gensupport.WrapError(err)
17301 }
17302 ret := &GooglePrivacyDlpV2DlpJob{
17303 ServerResponse: googleapi.ServerResponse{
17304 Header: res.Header,
17305 HTTPStatusCode: res.StatusCode,
17306 },
17307 }
17308 target := &ret
17309 if err := gensupport.DecodeResponse(target, res); err != nil {
17310 return nil, err
17311 }
17312 return ret, nil
17313 }
17314
17315 type ProjectsDlpJobsDeleteCall struct {
17316 s *Service
17317 name string
17318 urlParams_ gensupport.URLParams
17319 ctx_ context.Context
17320 header_ http.Header
17321 }
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332 func (r *ProjectsDlpJobsService) Delete(name string) *ProjectsDlpJobsDeleteCall {
17333 c := &ProjectsDlpJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17334 c.name = name
17335 return c
17336 }
17337
17338
17339
17340
17341 func (c *ProjectsDlpJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsDeleteCall {
17342 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17343 return c
17344 }
17345
17346
17347 func (c *ProjectsDlpJobsDeleteCall) Context(ctx context.Context) *ProjectsDlpJobsDeleteCall {
17348 c.ctx_ = ctx
17349 return c
17350 }
17351
17352
17353
17354 func (c *ProjectsDlpJobsDeleteCall) Header() http.Header {
17355 if c.header_ == nil {
17356 c.header_ = make(http.Header)
17357 }
17358 return c.header_
17359 }
17360
17361 func (c *ProjectsDlpJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
17362 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17363 var body io.Reader = nil
17364 c.urlParams_.Set("alt", alt)
17365 c.urlParams_.Set("prettyPrint", "false")
17366 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
17367 urls += "?" + c.urlParams_.Encode()
17368 req, err := http.NewRequest("DELETE", urls, body)
17369 if err != nil {
17370 return nil, err
17371 }
17372 req.Header = reqHeaders
17373 googleapi.Expand(req.URL, map[string]string{
17374 "name": c.name,
17375 })
17376 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17377 }
17378
17379
17380
17381
17382
17383
17384
17385 func (c *ProjectsDlpJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
17386 gensupport.SetOptions(c.urlParams_, opts...)
17387 res, err := c.doRequest("json")
17388 if res != nil && res.StatusCode == http.StatusNotModified {
17389 if res.Body != nil {
17390 res.Body.Close()
17391 }
17392 return nil, gensupport.WrapError(&googleapi.Error{
17393 Code: res.StatusCode,
17394 Header: res.Header,
17395 })
17396 }
17397 if err != nil {
17398 return nil, err
17399 }
17400 defer googleapi.CloseBody(res)
17401 if err := googleapi.CheckResponse(res); err != nil {
17402 return nil, gensupport.WrapError(err)
17403 }
17404 ret := &GoogleProtobufEmpty{
17405 ServerResponse: googleapi.ServerResponse{
17406 Header: res.Header,
17407 HTTPStatusCode: res.StatusCode,
17408 },
17409 }
17410 target := &ret
17411 if err := gensupport.DecodeResponse(target, res); err != nil {
17412 return nil, err
17413 }
17414 return ret, nil
17415 }
17416
17417 type ProjectsDlpJobsGetCall struct {
17418 s *Service
17419 name string
17420 urlParams_ gensupport.URLParams
17421 ifNoneMatch_ string
17422 ctx_ context.Context
17423 header_ http.Header
17424 }
17425
17426
17427
17428
17429
17430
17431
17432
17433 func (r *ProjectsDlpJobsService) Get(name string) *ProjectsDlpJobsGetCall {
17434 c := &ProjectsDlpJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17435 c.name = name
17436 return c
17437 }
17438
17439
17440
17441
17442 func (c *ProjectsDlpJobsGetCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsGetCall {
17443 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17444 return c
17445 }
17446
17447
17448
17449
17450 func (c *ProjectsDlpJobsGetCall) IfNoneMatch(entityTag string) *ProjectsDlpJobsGetCall {
17451 c.ifNoneMatch_ = entityTag
17452 return c
17453 }
17454
17455
17456 func (c *ProjectsDlpJobsGetCall) Context(ctx context.Context) *ProjectsDlpJobsGetCall {
17457 c.ctx_ = ctx
17458 return c
17459 }
17460
17461
17462
17463 func (c *ProjectsDlpJobsGetCall) Header() http.Header {
17464 if c.header_ == nil {
17465 c.header_ = make(http.Header)
17466 }
17467 return c.header_
17468 }
17469
17470 func (c *ProjectsDlpJobsGetCall) doRequest(alt string) (*http.Response, error) {
17471 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17472 if c.ifNoneMatch_ != "" {
17473 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17474 }
17475 var body io.Reader = nil
17476 c.urlParams_.Set("alt", alt)
17477 c.urlParams_.Set("prettyPrint", "false")
17478 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
17479 urls += "?" + c.urlParams_.Encode()
17480 req, err := http.NewRequest("GET", urls, body)
17481 if err != nil {
17482 return nil, err
17483 }
17484 req.Header = reqHeaders
17485 googleapi.Expand(req.URL, map[string]string{
17486 "name": c.name,
17487 })
17488 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17489 }
17490
17491
17492
17493
17494
17495
17496
17497 func (c *ProjectsDlpJobsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
17498 gensupport.SetOptions(c.urlParams_, opts...)
17499 res, err := c.doRequest("json")
17500 if res != nil && res.StatusCode == http.StatusNotModified {
17501 if res.Body != nil {
17502 res.Body.Close()
17503 }
17504 return nil, gensupport.WrapError(&googleapi.Error{
17505 Code: res.StatusCode,
17506 Header: res.Header,
17507 })
17508 }
17509 if err != nil {
17510 return nil, err
17511 }
17512 defer googleapi.CloseBody(res)
17513 if err := googleapi.CheckResponse(res); err != nil {
17514 return nil, gensupport.WrapError(err)
17515 }
17516 ret := &GooglePrivacyDlpV2DlpJob{
17517 ServerResponse: googleapi.ServerResponse{
17518 Header: res.Header,
17519 HTTPStatusCode: res.StatusCode,
17520 },
17521 }
17522 target := &ret
17523 if err := gensupport.DecodeResponse(target, res); err != nil {
17524 return nil, err
17525 }
17526 return ret, nil
17527 }
17528
17529 type ProjectsDlpJobsListCall struct {
17530 s *Service
17531 parentid string
17532 urlParams_ gensupport.URLParams
17533 ifNoneMatch_ string
17534 ctx_ context.Context
17535 header_ http.Header
17536 }
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554 func (r *ProjectsDlpJobsService) List(parentid string) *ProjectsDlpJobsListCall {
17555 c := &ProjectsDlpJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17556 c.parentid = parentid
17557 return c
17558 }
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577 func (c *ProjectsDlpJobsListCall) Filter(filter string) *ProjectsDlpJobsListCall {
17578 c.urlParams_.Set("filter", filter)
17579 return c
17580 }
17581
17582
17583
17584 func (c *ProjectsDlpJobsListCall) LocationId(locationId string) *ProjectsDlpJobsListCall {
17585 c.urlParams_.Set("locationId", locationId)
17586 return c
17587 }
17588
17589
17590
17591
17592
17593
17594
17595
17596 func (c *ProjectsDlpJobsListCall) OrderBy(orderBy string) *ProjectsDlpJobsListCall {
17597 c.urlParams_.Set("orderBy", orderBy)
17598 return c
17599 }
17600
17601
17602
17603 func (c *ProjectsDlpJobsListCall) PageSize(pageSize int64) *ProjectsDlpJobsListCall {
17604 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17605 return c
17606 }
17607
17608
17609
17610 func (c *ProjectsDlpJobsListCall) PageToken(pageToken string) *ProjectsDlpJobsListCall {
17611 c.urlParams_.Set("pageToken", pageToken)
17612 return c
17613 }
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623 func (c *ProjectsDlpJobsListCall) Type(type_ string) *ProjectsDlpJobsListCall {
17624 c.urlParams_.Set("type", type_)
17625 return c
17626 }
17627
17628
17629
17630
17631 func (c *ProjectsDlpJobsListCall) Fields(s ...googleapi.Field) *ProjectsDlpJobsListCall {
17632 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17633 return c
17634 }
17635
17636
17637
17638
17639 func (c *ProjectsDlpJobsListCall) IfNoneMatch(entityTag string) *ProjectsDlpJobsListCall {
17640 c.ifNoneMatch_ = entityTag
17641 return c
17642 }
17643
17644
17645 func (c *ProjectsDlpJobsListCall) Context(ctx context.Context) *ProjectsDlpJobsListCall {
17646 c.ctx_ = ctx
17647 return c
17648 }
17649
17650
17651
17652 func (c *ProjectsDlpJobsListCall) Header() http.Header {
17653 if c.header_ == nil {
17654 c.header_ = make(http.Header)
17655 }
17656 return c.header_
17657 }
17658
17659 func (c *ProjectsDlpJobsListCall) doRequest(alt string) (*http.Response, error) {
17660 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17661 if c.ifNoneMatch_ != "" {
17662 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17663 }
17664 var body io.Reader = nil
17665 c.urlParams_.Set("alt", alt)
17666 c.urlParams_.Set("prettyPrint", "false")
17667 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
17668 urls += "?" + c.urlParams_.Encode()
17669 req, err := http.NewRequest("GET", urls, body)
17670 if err != nil {
17671 return nil, err
17672 }
17673 req.Header = reqHeaders
17674 googleapi.Expand(req.URL, map[string]string{
17675 "parent": c.parentid,
17676 })
17677 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17678 }
17679
17680
17681
17682
17683
17684
17685
17686 func (c *ProjectsDlpJobsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDlpJobsResponse, error) {
17687 gensupport.SetOptions(c.urlParams_, opts...)
17688 res, err := c.doRequest("json")
17689 if res != nil && res.StatusCode == http.StatusNotModified {
17690 if res.Body != nil {
17691 res.Body.Close()
17692 }
17693 return nil, gensupport.WrapError(&googleapi.Error{
17694 Code: res.StatusCode,
17695 Header: res.Header,
17696 })
17697 }
17698 if err != nil {
17699 return nil, err
17700 }
17701 defer googleapi.CloseBody(res)
17702 if err := googleapi.CheckResponse(res); err != nil {
17703 return nil, gensupport.WrapError(err)
17704 }
17705 ret := &GooglePrivacyDlpV2ListDlpJobsResponse{
17706 ServerResponse: googleapi.ServerResponse{
17707 Header: res.Header,
17708 HTTPStatusCode: res.StatusCode,
17709 },
17710 }
17711 target := &ret
17712 if err := gensupport.DecodeResponse(target, res); err != nil {
17713 return nil, err
17714 }
17715 return ret, nil
17716 }
17717
17718
17719
17720
17721 func (c *ProjectsDlpJobsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDlpJobsResponse) error) error {
17722 c.ctx_ = ctx
17723 defer c.PageToken(c.urlParams_.Get("pageToken"))
17724 for {
17725 x, err := c.Do()
17726 if err != nil {
17727 return err
17728 }
17729 if err := f(x); err != nil {
17730 return err
17731 }
17732 if x.NextPageToken == "" {
17733 return nil
17734 }
17735 c.PageToken(x.NextPageToken)
17736 }
17737 }
17738
17739 type ProjectsImageRedactCall struct {
17740 s *Service
17741 parentid string
17742 googleprivacydlpv2redactimagerequest *GooglePrivacyDlpV2RedactImageRequest
17743 urlParams_ gensupport.URLParams
17744 ctx_ context.Context
17745 header_ http.Header
17746 }
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766 func (r *ProjectsImageService) Redact(parentid string, googleprivacydlpv2redactimagerequest *GooglePrivacyDlpV2RedactImageRequest) *ProjectsImageRedactCall {
17767 c := &ProjectsImageRedactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17768 c.parentid = parentid
17769 c.googleprivacydlpv2redactimagerequest = googleprivacydlpv2redactimagerequest
17770 return c
17771 }
17772
17773
17774
17775
17776 func (c *ProjectsImageRedactCall) Fields(s ...googleapi.Field) *ProjectsImageRedactCall {
17777 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17778 return c
17779 }
17780
17781
17782 func (c *ProjectsImageRedactCall) Context(ctx context.Context) *ProjectsImageRedactCall {
17783 c.ctx_ = ctx
17784 return c
17785 }
17786
17787
17788
17789 func (c *ProjectsImageRedactCall) Header() http.Header {
17790 if c.header_ == nil {
17791 c.header_ = make(http.Header)
17792 }
17793 return c.header_
17794 }
17795
17796 func (c *ProjectsImageRedactCall) doRequest(alt string) (*http.Response, error) {
17797 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17798 var body io.Reader = nil
17799 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2redactimagerequest)
17800 if err != nil {
17801 return nil, err
17802 }
17803 c.urlParams_.Set("alt", alt)
17804 c.urlParams_.Set("prettyPrint", "false")
17805 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/image:redact")
17806 urls += "?" + c.urlParams_.Encode()
17807 req, err := http.NewRequest("POST", urls, body)
17808 if err != nil {
17809 return nil, err
17810 }
17811 req.Header = reqHeaders
17812 googleapi.Expand(req.URL, map[string]string{
17813 "parent": c.parentid,
17814 })
17815 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17816 }
17817
17818
17819
17820
17821
17822
17823
17824 func (c *ProjectsImageRedactCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2RedactImageResponse, error) {
17825 gensupport.SetOptions(c.urlParams_, opts...)
17826 res, err := c.doRequest("json")
17827 if res != nil && res.StatusCode == http.StatusNotModified {
17828 if res.Body != nil {
17829 res.Body.Close()
17830 }
17831 return nil, gensupport.WrapError(&googleapi.Error{
17832 Code: res.StatusCode,
17833 Header: res.Header,
17834 })
17835 }
17836 if err != nil {
17837 return nil, err
17838 }
17839 defer googleapi.CloseBody(res)
17840 if err := googleapi.CheckResponse(res); err != nil {
17841 return nil, gensupport.WrapError(err)
17842 }
17843 ret := &GooglePrivacyDlpV2RedactImageResponse{
17844 ServerResponse: googleapi.ServerResponse{
17845 Header: res.Header,
17846 HTTPStatusCode: res.StatusCode,
17847 },
17848 }
17849 target := &ret
17850 if err := gensupport.DecodeResponse(target, res); err != nil {
17851 return nil, err
17852 }
17853 return ret, nil
17854 }
17855
17856 type ProjectsInspectTemplatesCreateCall struct {
17857 s *Service
17858 parentid string
17859 googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest
17860 urlParams_ gensupport.URLParams
17861 ctx_ context.Context
17862 header_ http.Header
17863 }
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884 func (r *ProjectsInspectTemplatesService) Create(parentid string, googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest) *ProjectsInspectTemplatesCreateCall {
17885 c := &ProjectsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17886 c.parentid = parentid
17887 c.googleprivacydlpv2createinspecttemplaterequest = googleprivacydlpv2createinspecttemplaterequest
17888 return c
17889 }
17890
17891
17892
17893
17894 func (c *ProjectsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesCreateCall {
17895 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17896 return c
17897 }
17898
17899
17900 func (c *ProjectsInspectTemplatesCreateCall) Context(ctx context.Context) *ProjectsInspectTemplatesCreateCall {
17901 c.ctx_ = ctx
17902 return c
17903 }
17904
17905
17906
17907 func (c *ProjectsInspectTemplatesCreateCall) Header() http.Header {
17908 if c.header_ == nil {
17909 c.header_ = make(http.Header)
17910 }
17911 return c.header_
17912 }
17913
17914 func (c *ProjectsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
17915 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17916 var body io.Reader = nil
17917 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createinspecttemplaterequest)
17918 if err != nil {
17919 return nil, err
17920 }
17921 c.urlParams_.Set("alt", alt)
17922 c.urlParams_.Set("prettyPrint", "false")
17923 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
17924 urls += "?" + c.urlParams_.Encode()
17925 req, err := http.NewRequest("POST", urls, body)
17926 if err != nil {
17927 return nil, err
17928 }
17929 req.Header = reqHeaders
17930 googleapi.Expand(req.URL, map[string]string{
17931 "parent": c.parentid,
17932 })
17933 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17934 }
17935
17936
17937
17938
17939
17940
17941
17942 func (c *ProjectsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
17943 gensupport.SetOptions(c.urlParams_, opts...)
17944 res, err := c.doRequest("json")
17945 if res != nil && res.StatusCode == http.StatusNotModified {
17946 if res.Body != nil {
17947 res.Body.Close()
17948 }
17949 return nil, gensupport.WrapError(&googleapi.Error{
17950 Code: res.StatusCode,
17951 Header: res.Header,
17952 })
17953 }
17954 if err != nil {
17955 return nil, err
17956 }
17957 defer googleapi.CloseBody(res)
17958 if err := googleapi.CheckResponse(res); err != nil {
17959 return nil, gensupport.WrapError(err)
17960 }
17961 ret := &GooglePrivacyDlpV2InspectTemplate{
17962 ServerResponse: googleapi.ServerResponse{
17963 Header: res.Header,
17964 HTTPStatusCode: res.StatusCode,
17965 },
17966 }
17967 target := &ret
17968 if err := gensupport.DecodeResponse(target, res); err != nil {
17969 return nil, err
17970 }
17971 return ret, nil
17972 }
17973
17974 type ProjectsInspectTemplatesDeleteCall struct {
17975 s *Service
17976 name string
17977 urlParams_ gensupport.URLParams
17978 ctx_ context.Context
17979 header_ http.Header
17980 }
17981
17982
17983
17984
17985
17986
17987
17988
17989 func (r *ProjectsInspectTemplatesService) Delete(name string) *ProjectsInspectTemplatesDeleteCall {
17990 c := &ProjectsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17991 c.name = name
17992 return c
17993 }
17994
17995
17996
17997
17998 func (c *ProjectsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesDeleteCall {
17999 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18000 return c
18001 }
18002
18003
18004 func (c *ProjectsInspectTemplatesDeleteCall) Context(ctx context.Context) *ProjectsInspectTemplatesDeleteCall {
18005 c.ctx_ = ctx
18006 return c
18007 }
18008
18009
18010
18011 func (c *ProjectsInspectTemplatesDeleteCall) Header() http.Header {
18012 if c.header_ == nil {
18013 c.header_ = make(http.Header)
18014 }
18015 return c.header_
18016 }
18017
18018 func (c *ProjectsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
18019 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18020 var body io.Reader = nil
18021 c.urlParams_.Set("alt", alt)
18022 c.urlParams_.Set("prettyPrint", "false")
18023 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
18024 urls += "?" + c.urlParams_.Encode()
18025 req, err := http.NewRequest("DELETE", urls, body)
18026 if err != nil {
18027 return nil, err
18028 }
18029 req.Header = reqHeaders
18030 googleapi.Expand(req.URL, map[string]string{
18031 "name": c.name,
18032 })
18033 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18034 }
18035
18036
18037
18038
18039
18040
18041
18042 func (c *ProjectsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18043 gensupport.SetOptions(c.urlParams_, opts...)
18044 res, err := c.doRequest("json")
18045 if res != nil && res.StatusCode == http.StatusNotModified {
18046 if res.Body != nil {
18047 res.Body.Close()
18048 }
18049 return nil, gensupport.WrapError(&googleapi.Error{
18050 Code: res.StatusCode,
18051 Header: res.Header,
18052 })
18053 }
18054 if err != nil {
18055 return nil, err
18056 }
18057 defer googleapi.CloseBody(res)
18058 if err := googleapi.CheckResponse(res); err != nil {
18059 return nil, gensupport.WrapError(err)
18060 }
18061 ret := &GoogleProtobufEmpty{
18062 ServerResponse: googleapi.ServerResponse{
18063 Header: res.Header,
18064 HTTPStatusCode: res.StatusCode,
18065 },
18066 }
18067 target := &ret
18068 if err := gensupport.DecodeResponse(target, res); err != nil {
18069 return nil, err
18070 }
18071 return ret, nil
18072 }
18073
18074 type ProjectsInspectTemplatesGetCall struct {
18075 s *Service
18076 name string
18077 urlParams_ gensupport.URLParams
18078 ifNoneMatch_ string
18079 ctx_ context.Context
18080 header_ http.Header
18081 }
18082
18083
18084
18085
18086
18087
18088
18089
18090 func (r *ProjectsInspectTemplatesService) Get(name string) *ProjectsInspectTemplatesGetCall {
18091 c := &ProjectsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18092 c.name = name
18093 return c
18094 }
18095
18096
18097
18098
18099 func (c *ProjectsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesGetCall {
18100 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18101 return c
18102 }
18103
18104
18105
18106
18107 func (c *ProjectsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsInspectTemplatesGetCall {
18108 c.ifNoneMatch_ = entityTag
18109 return c
18110 }
18111
18112
18113 func (c *ProjectsInspectTemplatesGetCall) Context(ctx context.Context) *ProjectsInspectTemplatesGetCall {
18114 c.ctx_ = ctx
18115 return c
18116 }
18117
18118
18119
18120 func (c *ProjectsInspectTemplatesGetCall) Header() http.Header {
18121 if c.header_ == nil {
18122 c.header_ = make(http.Header)
18123 }
18124 return c.header_
18125 }
18126
18127 func (c *ProjectsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
18128 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18129 if c.ifNoneMatch_ != "" {
18130 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18131 }
18132 var body io.Reader = nil
18133 c.urlParams_.Set("alt", alt)
18134 c.urlParams_.Set("prettyPrint", "false")
18135 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
18136 urls += "?" + c.urlParams_.Encode()
18137 req, err := http.NewRequest("GET", urls, body)
18138 if err != nil {
18139 return nil, err
18140 }
18141 req.Header = reqHeaders
18142 googleapi.Expand(req.URL, map[string]string{
18143 "name": c.name,
18144 })
18145 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18146 }
18147
18148
18149
18150
18151
18152
18153
18154 func (c *ProjectsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
18155 gensupport.SetOptions(c.urlParams_, opts...)
18156 res, err := c.doRequest("json")
18157 if res != nil && res.StatusCode == http.StatusNotModified {
18158 if res.Body != nil {
18159 res.Body.Close()
18160 }
18161 return nil, gensupport.WrapError(&googleapi.Error{
18162 Code: res.StatusCode,
18163 Header: res.Header,
18164 })
18165 }
18166 if err != nil {
18167 return nil, err
18168 }
18169 defer googleapi.CloseBody(res)
18170 if err := googleapi.CheckResponse(res); err != nil {
18171 return nil, gensupport.WrapError(err)
18172 }
18173 ret := &GooglePrivacyDlpV2InspectTemplate{
18174 ServerResponse: googleapi.ServerResponse{
18175 Header: res.Header,
18176 HTTPStatusCode: res.StatusCode,
18177 },
18178 }
18179 target := &ret
18180 if err := gensupport.DecodeResponse(target, res); err != nil {
18181 return nil, err
18182 }
18183 return ret, nil
18184 }
18185
18186 type ProjectsInspectTemplatesListCall struct {
18187 s *Service
18188 parentid string
18189 urlParams_ gensupport.URLParams
18190 ifNoneMatch_ string
18191 ctx_ context.Context
18192 header_ http.Header
18193 }
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213 func (r *ProjectsInspectTemplatesService) List(parentid string) *ProjectsInspectTemplatesListCall {
18214 c := &ProjectsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18215 c.parentid = parentid
18216 return c
18217 }
18218
18219
18220
18221 func (c *ProjectsInspectTemplatesListCall) LocationId(locationId string) *ProjectsInspectTemplatesListCall {
18222 c.urlParams_.Set("locationId", locationId)
18223 return c
18224 }
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234 func (c *ProjectsInspectTemplatesListCall) OrderBy(orderBy string) *ProjectsInspectTemplatesListCall {
18235 c.urlParams_.Set("orderBy", orderBy)
18236 return c
18237 }
18238
18239
18240
18241
18242 func (c *ProjectsInspectTemplatesListCall) PageSize(pageSize int64) *ProjectsInspectTemplatesListCall {
18243 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18244 return c
18245 }
18246
18247
18248
18249 func (c *ProjectsInspectTemplatesListCall) PageToken(pageToken string) *ProjectsInspectTemplatesListCall {
18250 c.urlParams_.Set("pageToken", pageToken)
18251 return c
18252 }
18253
18254
18255
18256
18257 func (c *ProjectsInspectTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesListCall {
18258 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18259 return c
18260 }
18261
18262
18263
18264
18265 func (c *ProjectsInspectTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsInspectTemplatesListCall {
18266 c.ifNoneMatch_ = entityTag
18267 return c
18268 }
18269
18270
18271 func (c *ProjectsInspectTemplatesListCall) Context(ctx context.Context) *ProjectsInspectTemplatesListCall {
18272 c.ctx_ = ctx
18273 return c
18274 }
18275
18276
18277
18278 func (c *ProjectsInspectTemplatesListCall) Header() http.Header {
18279 if c.header_ == nil {
18280 c.header_ = make(http.Header)
18281 }
18282 return c.header_
18283 }
18284
18285 func (c *ProjectsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
18286 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18287 if c.ifNoneMatch_ != "" {
18288 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18289 }
18290 var body io.Reader = nil
18291 c.urlParams_.Set("alt", alt)
18292 c.urlParams_.Set("prettyPrint", "false")
18293 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
18294 urls += "?" + c.urlParams_.Encode()
18295 req, err := http.NewRequest("GET", urls, body)
18296 if err != nil {
18297 return nil, err
18298 }
18299 req.Header = reqHeaders
18300 googleapi.Expand(req.URL, map[string]string{
18301 "parent": c.parentid,
18302 })
18303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18304 }
18305
18306
18307
18308
18309
18310
18311
18312 func (c *ProjectsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInspectTemplatesResponse, error) {
18313 gensupport.SetOptions(c.urlParams_, opts...)
18314 res, err := c.doRequest("json")
18315 if res != nil && res.StatusCode == http.StatusNotModified {
18316 if res.Body != nil {
18317 res.Body.Close()
18318 }
18319 return nil, gensupport.WrapError(&googleapi.Error{
18320 Code: res.StatusCode,
18321 Header: res.Header,
18322 })
18323 }
18324 if err != nil {
18325 return nil, err
18326 }
18327 defer googleapi.CloseBody(res)
18328 if err := googleapi.CheckResponse(res); err != nil {
18329 return nil, gensupport.WrapError(err)
18330 }
18331 ret := &GooglePrivacyDlpV2ListInspectTemplatesResponse{
18332 ServerResponse: googleapi.ServerResponse{
18333 Header: res.Header,
18334 HTTPStatusCode: res.StatusCode,
18335 },
18336 }
18337 target := &ret
18338 if err := gensupport.DecodeResponse(target, res); err != nil {
18339 return nil, err
18340 }
18341 return ret, nil
18342 }
18343
18344
18345
18346
18347 func (c *ProjectsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListInspectTemplatesResponse) error) error {
18348 c.ctx_ = ctx
18349 defer c.PageToken(c.urlParams_.Get("pageToken"))
18350 for {
18351 x, err := c.Do()
18352 if err != nil {
18353 return err
18354 }
18355 if err := f(x); err != nil {
18356 return err
18357 }
18358 if x.NextPageToken == "" {
18359 return nil
18360 }
18361 c.PageToken(x.NextPageToken)
18362 }
18363 }
18364
18365 type ProjectsInspectTemplatesPatchCall struct {
18366 s *Service
18367 name string
18368 googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest
18369 urlParams_ gensupport.URLParams
18370 ctx_ context.Context
18371 header_ http.Header
18372 }
18373
18374
18375
18376
18377
18378
18379
18380
18381 func (r *ProjectsInspectTemplatesService) Patch(name string, googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest) *ProjectsInspectTemplatesPatchCall {
18382 c := &ProjectsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18383 c.name = name
18384 c.googleprivacydlpv2updateinspecttemplaterequest = googleprivacydlpv2updateinspecttemplaterequest
18385 return c
18386 }
18387
18388
18389
18390
18391 func (c *ProjectsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsInspectTemplatesPatchCall {
18392 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18393 return c
18394 }
18395
18396
18397 func (c *ProjectsInspectTemplatesPatchCall) Context(ctx context.Context) *ProjectsInspectTemplatesPatchCall {
18398 c.ctx_ = ctx
18399 return c
18400 }
18401
18402
18403
18404 func (c *ProjectsInspectTemplatesPatchCall) Header() http.Header {
18405 if c.header_ == nil {
18406 c.header_ = make(http.Header)
18407 }
18408 return c.header_
18409 }
18410
18411 func (c *ProjectsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
18412 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18413 var body io.Reader = nil
18414 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateinspecttemplaterequest)
18415 if err != nil {
18416 return nil, err
18417 }
18418 c.urlParams_.Set("alt", alt)
18419 c.urlParams_.Set("prettyPrint", "false")
18420 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
18421 urls += "?" + c.urlParams_.Encode()
18422 req, err := http.NewRequest("PATCH", urls, body)
18423 if err != nil {
18424 return nil, err
18425 }
18426 req.Header = reqHeaders
18427 googleapi.Expand(req.URL, map[string]string{
18428 "name": c.name,
18429 })
18430 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18431 }
18432
18433
18434
18435
18436
18437
18438
18439 func (c *ProjectsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
18440 gensupport.SetOptions(c.urlParams_, opts...)
18441 res, err := c.doRequest("json")
18442 if res != nil && res.StatusCode == http.StatusNotModified {
18443 if res.Body != nil {
18444 res.Body.Close()
18445 }
18446 return nil, gensupport.WrapError(&googleapi.Error{
18447 Code: res.StatusCode,
18448 Header: res.Header,
18449 })
18450 }
18451 if err != nil {
18452 return nil, err
18453 }
18454 defer googleapi.CloseBody(res)
18455 if err := googleapi.CheckResponse(res); err != nil {
18456 return nil, gensupport.WrapError(err)
18457 }
18458 ret := &GooglePrivacyDlpV2InspectTemplate{
18459 ServerResponse: googleapi.ServerResponse{
18460 Header: res.Header,
18461 HTTPStatusCode: res.StatusCode,
18462 },
18463 }
18464 target := &ret
18465 if err := gensupport.DecodeResponse(target, res); err != nil {
18466 return nil, err
18467 }
18468 return ret, nil
18469 }
18470
18471 type ProjectsJobTriggersActivateCall struct {
18472 s *Service
18473 name string
18474 googleprivacydlpv2activatejobtriggerrequest *GooglePrivacyDlpV2ActivateJobTriggerRequest
18475 urlParams_ gensupport.URLParams
18476 ctx_ context.Context
18477 header_ http.Header
18478 }
18479
18480
18481
18482
18483
18484
18485 func (r *ProjectsJobTriggersService) Activate(name string, googleprivacydlpv2activatejobtriggerrequest *GooglePrivacyDlpV2ActivateJobTriggerRequest) *ProjectsJobTriggersActivateCall {
18486 c := &ProjectsJobTriggersActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18487 c.name = name
18488 c.googleprivacydlpv2activatejobtriggerrequest = googleprivacydlpv2activatejobtriggerrequest
18489 return c
18490 }
18491
18492
18493
18494
18495 func (c *ProjectsJobTriggersActivateCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersActivateCall {
18496 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18497 return c
18498 }
18499
18500
18501 func (c *ProjectsJobTriggersActivateCall) Context(ctx context.Context) *ProjectsJobTriggersActivateCall {
18502 c.ctx_ = ctx
18503 return c
18504 }
18505
18506
18507
18508 func (c *ProjectsJobTriggersActivateCall) Header() http.Header {
18509 if c.header_ == nil {
18510 c.header_ = make(http.Header)
18511 }
18512 return c.header_
18513 }
18514
18515 func (c *ProjectsJobTriggersActivateCall) doRequest(alt string) (*http.Response, error) {
18516 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18517 var body io.Reader = nil
18518 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2activatejobtriggerrequest)
18519 if err != nil {
18520 return nil, err
18521 }
18522 c.urlParams_.Set("alt", alt)
18523 c.urlParams_.Set("prettyPrint", "false")
18524 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:activate")
18525 urls += "?" + c.urlParams_.Encode()
18526 req, err := http.NewRequest("POST", urls, body)
18527 if err != nil {
18528 return nil, err
18529 }
18530 req.Header = reqHeaders
18531 googleapi.Expand(req.URL, map[string]string{
18532 "name": c.name,
18533 })
18534 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18535 }
18536
18537
18538
18539
18540
18541
18542
18543 func (c *ProjectsJobTriggersActivateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
18544 gensupport.SetOptions(c.urlParams_, opts...)
18545 res, err := c.doRequest("json")
18546 if res != nil && res.StatusCode == http.StatusNotModified {
18547 if res.Body != nil {
18548 res.Body.Close()
18549 }
18550 return nil, gensupport.WrapError(&googleapi.Error{
18551 Code: res.StatusCode,
18552 Header: res.Header,
18553 })
18554 }
18555 if err != nil {
18556 return nil, err
18557 }
18558 defer googleapi.CloseBody(res)
18559 if err := googleapi.CheckResponse(res); err != nil {
18560 return nil, gensupport.WrapError(err)
18561 }
18562 ret := &GooglePrivacyDlpV2DlpJob{
18563 ServerResponse: googleapi.ServerResponse{
18564 Header: res.Header,
18565 HTTPStatusCode: res.StatusCode,
18566 },
18567 }
18568 target := &ret
18569 if err := gensupport.DecodeResponse(target, res); err != nil {
18570 return nil, err
18571 }
18572 return ret, nil
18573 }
18574
18575 type ProjectsJobTriggersCreateCall struct {
18576 s *Service
18577 parentid string
18578 googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest
18579 urlParams_ gensupport.URLParams
18580 ctx_ context.Context
18581 header_ http.Header
18582 }
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599 func (r *ProjectsJobTriggersService) Create(parentid string, googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest) *ProjectsJobTriggersCreateCall {
18600 c := &ProjectsJobTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18601 c.parentid = parentid
18602 c.googleprivacydlpv2createjobtriggerrequest = googleprivacydlpv2createjobtriggerrequest
18603 return c
18604 }
18605
18606
18607
18608
18609 func (c *ProjectsJobTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersCreateCall {
18610 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18611 return c
18612 }
18613
18614
18615 func (c *ProjectsJobTriggersCreateCall) Context(ctx context.Context) *ProjectsJobTriggersCreateCall {
18616 c.ctx_ = ctx
18617 return c
18618 }
18619
18620
18621
18622 func (c *ProjectsJobTriggersCreateCall) Header() http.Header {
18623 if c.header_ == nil {
18624 c.header_ = make(http.Header)
18625 }
18626 return c.header_
18627 }
18628
18629 func (c *ProjectsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
18630 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18631 var body io.Reader = nil
18632 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createjobtriggerrequest)
18633 if err != nil {
18634 return nil, err
18635 }
18636 c.urlParams_.Set("alt", alt)
18637 c.urlParams_.Set("prettyPrint", "false")
18638 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
18639 urls += "?" + c.urlParams_.Encode()
18640 req, err := http.NewRequest("POST", urls, body)
18641 if err != nil {
18642 return nil, err
18643 }
18644 req.Header = reqHeaders
18645 googleapi.Expand(req.URL, map[string]string{
18646 "parent": c.parentid,
18647 })
18648 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18649 }
18650
18651
18652
18653
18654
18655
18656
18657 func (c *ProjectsJobTriggersCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
18658 gensupport.SetOptions(c.urlParams_, opts...)
18659 res, err := c.doRequest("json")
18660 if res != nil && res.StatusCode == http.StatusNotModified {
18661 if res.Body != nil {
18662 res.Body.Close()
18663 }
18664 return nil, gensupport.WrapError(&googleapi.Error{
18665 Code: res.StatusCode,
18666 Header: res.Header,
18667 })
18668 }
18669 if err != nil {
18670 return nil, err
18671 }
18672 defer googleapi.CloseBody(res)
18673 if err := googleapi.CheckResponse(res); err != nil {
18674 return nil, gensupport.WrapError(err)
18675 }
18676 ret := &GooglePrivacyDlpV2JobTrigger{
18677 ServerResponse: googleapi.ServerResponse{
18678 Header: res.Header,
18679 HTTPStatusCode: res.StatusCode,
18680 },
18681 }
18682 target := &ret
18683 if err := gensupport.DecodeResponse(target, res); err != nil {
18684 return nil, err
18685 }
18686 return ret, nil
18687 }
18688
18689 type ProjectsJobTriggersDeleteCall struct {
18690 s *Service
18691 name string
18692 urlParams_ gensupport.URLParams
18693 ctx_ context.Context
18694 header_ http.Header
18695 }
18696
18697
18698
18699
18700
18701
18702
18703 func (r *ProjectsJobTriggersService) Delete(name string) *ProjectsJobTriggersDeleteCall {
18704 c := &ProjectsJobTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18705 c.name = name
18706 return c
18707 }
18708
18709
18710
18711
18712 func (c *ProjectsJobTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersDeleteCall {
18713 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18714 return c
18715 }
18716
18717
18718 func (c *ProjectsJobTriggersDeleteCall) Context(ctx context.Context) *ProjectsJobTriggersDeleteCall {
18719 c.ctx_ = ctx
18720 return c
18721 }
18722
18723
18724
18725 func (c *ProjectsJobTriggersDeleteCall) Header() http.Header {
18726 if c.header_ == nil {
18727 c.header_ = make(http.Header)
18728 }
18729 return c.header_
18730 }
18731
18732 func (c *ProjectsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
18733 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18734 var body io.Reader = nil
18735 c.urlParams_.Set("alt", alt)
18736 c.urlParams_.Set("prettyPrint", "false")
18737 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
18738 urls += "?" + c.urlParams_.Encode()
18739 req, err := http.NewRequest("DELETE", urls, body)
18740 if err != nil {
18741 return nil, err
18742 }
18743 req.Header = reqHeaders
18744 googleapi.Expand(req.URL, map[string]string{
18745 "name": c.name,
18746 })
18747 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18748 }
18749
18750
18751
18752
18753
18754
18755
18756 func (c *ProjectsJobTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18757 gensupport.SetOptions(c.urlParams_, opts...)
18758 res, err := c.doRequest("json")
18759 if res != nil && res.StatusCode == http.StatusNotModified {
18760 if res.Body != nil {
18761 res.Body.Close()
18762 }
18763 return nil, gensupport.WrapError(&googleapi.Error{
18764 Code: res.StatusCode,
18765 Header: res.Header,
18766 })
18767 }
18768 if err != nil {
18769 return nil, err
18770 }
18771 defer googleapi.CloseBody(res)
18772 if err := googleapi.CheckResponse(res); err != nil {
18773 return nil, gensupport.WrapError(err)
18774 }
18775 ret := &GoogleProtobufEmpty{
18776 ServerResponse: googleapi.ServerResponse{
18777 Header: res.Header,
18778 HTTPStatusCode: res.StatusCode,
18779 },
18780 }
18781 target := &ret
18782 if err := gensupport.DecodeResponse(target, res); err != nil {
18783 return nil, err
18784 }
18785 return ret, nil
18786 }
18787
18788 type ProjectsJobTriggersGetCall struct {
18789 s *Service
18790 name string
18791 urlParams_ gensupport.URLParams
18792 ifNoneMatch_ string
18793 ctx_ context.Context
18794 header_ http.Header
18795 }
18796
18797
18798
18799
18800
18801
18802
18803 func (r *ProjectsJobTriggersService) Get(name string) *ProjectsJobTriggersGetCall {
18804 c := &ProjectsJobTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18805 c.name = name
18806 return c
18807 }
18808
18809
18810
18811
18812 func (c *ProjectsJobTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersGetCall {
18813 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18814 return c
18815 }
18816
18817
18818
18819
18820 func (c *ProjectsJobTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsJobTriggersGetCall {
18821 c.ifNoneMatch_ = entityTag
18822 return c
18823 }
18824
18825
18826 func (c *ProjectsJobTriggersGetCall) Context(ctx context.Context) *ProjectsJobTriggersGetCall {
18827 c.ctx_ = ctx
18828 return c
18829 }
18830
18831
18832
18833 func (c *ProjectsJobTriggersGetCall) Header() http.Header {
18834 if c.header_ == nil {
18835 c.header_ = make(http.Header)
18836 }
18837 return c.header_
18838 }
18839
18840 func (c *ProjectsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) {
18841 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18842 if c.ifNoneMatch_ != "" {
18843 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18844 }
18845 var body io.Reader = nil
18846 c.urlParams_.Set("alt", alt)
18847 c.urlParams_.Set("prettyPrint", "false")
18848 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
18849 urls += "?" + c.urlParams_.Encode()
18850 req, err := http.NewRequest("GET", urls, body)
18851 if err != nil {
18852 return nil, err
18853 }
18854 req.Header = reqHeaders
18855 googleapi.Expand(req.URL, map[string]string{
18856 "name": c.name,
18857 })
18858 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18859 }
18860
18861
18862
18863
18864
18865
18866
18867 func (c *ProjectsJobTriggersGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
18868 gensupport.SetOptions(c.urlParams_, opts...)
18869 res, err := c.doRequest("json")
18870 if res != nil && res.StatusCode == http.StatusNotModified {
18871 if res.Body != nil {
18872 res.Body.Close()
18873 }
18874 return nil, gensupport.WrapError(&googleapi.Error{
18875 Code: res.StatusCode,
18876 Header: res.Header,
18877 })
18878 }
18879 if err != nil {
18880 return nil, err
18881 }
18882 defer googleapi.CloseBody(res)
18883 if err := googleapi.CheckResponse(res); err != nil {
18884 return nil, gensupport.WrapError(err)
18885 }
18886 ret := &GooglePrivacyDlpV2JobTrigger{
18887 ServerResponse: googleapi.ServerResponse{
18888 Header: res.Header,
18889 HTTPStatusCode: res.StatusCode,
18890 },
18891 }
18892 target := &ret
18893 if err := gensupport.DecodeResponse(target, res); err != nil {
18894 return nil, err
18895 }
18896 return ret, nil
18897 }
18898
18899 type ProjectsJobTriggersListCall struct {
18900 s *Service
18901 parentid string
18902 urlParams_ gensupport.URLParams
18903 ifNoneMatch_ string
18904 ctx_ context.Context
18905 header_ http.Header
18906 }
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922 func (r *ProjectsJobTriggersService) List(parentid string) *ProjectsJobTriggersListCall {
18923 c := &ProjectsJobTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18924 c.parentid = parentid
18925 return c
18926 }
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943 func (c *ProjectsJobTriggersListCall) Filter(filter string) *ProjectsJobTriggersListCall {
18944 c.urlParams_.Set("filter", filter)
18945 return c
18946 }
18947
18948
18949
18950 func (c *ProjectsJobTriggersListCall) LocationId(locationId string) *ProjectsJobTriggersListCall {
18951 c.urlParams_.Set("locationId", locationId)
18952 return c
18953 }
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965 func (c *ProjectsJobTriggersListCall) OrderBy(orderBy string) *ProjectsJobTriggersListCall {
18966 c.urlParams_.Set("orderBy", orderBy)
18967 return c
18968 }
18969
18970
18971
18972 func (c *ProjectsJobTriggersListCall) PageSize(pageSize int64) *ProjectsJobTriggersListCall {
18973 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18974 return c
18975 }
18976
18977
18978
18979
18980 func (c *ProjectsJobTriggersListCall) PageToken(pageToken string) *ProjectsJobTriggersListCall {
18981 c.urlParams_.Set("pageToken", pageToken)
18982 return c
18983 }
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993 func (c *ProjectsJobTriggersListCall) Type(type_ string) *ProjectsJobTriggersListCall {
18994 c.urlParams_.Set("type", type_)
18995 return c
18996 }
18997
18998
18999
19000
19001 func (c *ProjectsJobTriggersListCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersListCall {
19002 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19003 return c
19004 }
19005
19006
19007
19008
19009 func (c *ProjectsJobTriggersListCall) IfNoneMatch(entityTag string) *ProjectsJobTriggersListCall {
19010 c.ifNoneMatch_ = entityTag
19011 return c
19012 }
19013
19014
19015 func (c *ProjectsJobTriggersListCall) Context(ctx context.Context) *ProjectsJobTriggersListCall {
19016 c.ctx_ = ctx
19017 return c
19018 }
19019
19020
19021
19022 func (c *ProjectsJobTriggersListCall) Header() http.Header {
19023 if c.header_ == nil {
19024 c.header_ = make(http.Header)
19025 }
19026 return c.header_
19027 }
19028
19029 func (c *ProjectsJobTriggersListCall) doRequest(alt string) (*http.Response, error) {
19030 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19031 if c.ifNoneMatch_ != "" {
19032 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19033 }
19034 var body io.Reader = nil
19035 c.urlParams_.Set("alt", alt)
19036 c.urlParams_.Set("prettyPrint", "false")
19037 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
19038 urls += "?" + c.urlParams_.Encode()
19039 req, err := http.NewRequest("GET", urls, body)
19040 if err != nil {
19041 return nil, err
19042 }
19043 req.Header = reqHeaders
19044 googleapi.Expand(req.URL, map[string]string{
19045 "parent": c.parentid,
19046 })
19047 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19048 }
19049
19050
19051
19052
19053
19054
19055
19056 func (c *ProjectsJobTriggersListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListJobTriggersResponse, error) {
19057 gensupport.SetOptions(c.urlParams_, opts...)
19058 res, err := c.doRequest("json")
19059 if res != nil && res.StatusCode == http.StatusNotModified {
19060 if res.Body != nil {
19061 res.Body.Close()
19062 }
19063 return nil, gensupport.WrapError(&googleapi.Error{
19064 Code: res.StatusCode,
19065 Header: res.Header,
19066 })
19067 }
19068 if err != nil {
19069 return nil, err
19070 }
19071 defer googleapi.CloseBody(res)
19072 if err := googleapi.CheckResponse(res); err != nil {
19073 return nil, gensupport.WrapError(err)
19074 }
19075 ret := &GooglePrivacyDlpV2ListJobTriggersResponse{
19076 ServerResponse: googleapi.ServerResponse{
19077 Header: res.Header,
19078 HTTPStatusCode: res.StatusCode,
19079 },
19080 }
19081 target := &ret
19082 if err := gensupport.DecodeResponse(target, res); err != nil {
19083 return nil, err
19084 }
19085 return ret, nil
19086 }
19087
19088
19089
19090
19091 func (c *ProjectsJobTriggersListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListJobTriggersResponse) error) error {
19092 c.ctx_ = ctx
19093 defer c.PageToken(c.urlParams_.Get("pageToken"))
19094 for {
19095 x, err := c.Do()
19096 if err != nil {
19097 return err
19098 }
19099 if err := f(x); err != nil {
19100 return err
19101 }
19102 if x.NextPageToken == "" {
19103 return nil
19104 }
19105 c.PageToken(x.NextPageToken)
19106 }
19107 }
19108
19109 type ProjectsJobTriggersPatchCall struct {
19110 s *Service
19111 name string
19112 googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest
19113 urlParams_ gensupport.URLParams
19114 ctx_ context.Context
19115 header_ http.Header
19116 }
19117
19118
19119
19120
19121
19122
19123
19124 func (r *ProjectsJobTriggersService) Patch(name string, googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest) *ProjectsJobTriggersPatchCall {
19125 c := &ProjectsJobTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19126 c.name = name
19127 c.googleprivacydlpv2updatejobtriggerrequest = googleprivacydlpv2updatejobtriggerrequest
19128 return c
19129 }
19130
19131
19132
19133
19134 func (c *ProjectsJobTriggersPatchCall) Fields(s ...googleapi.Field) *ProjectsJobTriggersPatchCall {
19135 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19136 return c
19137 }
19138
19139
19140 func (c *ProjectsJobTriggersPatchCall) Context(ctx context.Context) *ProjectsJobTriggersPatchCall {
19141 c.ctx_ = ctx
19142 return c
19143 }
19144
19145
19146
19147 func (c *ProjectsJobTriggersPatchCall) Header() http.Header {
19148 if c.header_ == nil {
19149 c.header_ = make(http.Header)
19150 }
19151 return c.header_
19152 }
19153
19154 func (c *ProjectsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
19155 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19156 var body io.Reader = nil
19157 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatejobtriggerrequest)
19158 if err != nil {
19159 return nil, err
19160 }
19161 c.urlParams_.Set("alt", alt)
19162 c.urlParams_.Set("prettyPrint", "false")
19163 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
19164 urls += "?" + c.urlParams_.Encode()
19165 req, err := http.NewRequest("PATCH", urls, body)
19166 if err != nil {
19167 return nil, err
19168 }
19169 req.Header = reqHeaders
19170 googleapi.Expand(req.URL, map[string]string{
19171 "name": c.name,
19172 })
19173 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19174 }
19175
19176
19177
19178
19179
19180
19181
19182 func (c *ProjectsJobTriggersPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
19183 gensupport.SetOptions(c.urlParams_, opts...)
19184 res, err := c.doRequest("json")
19185 if res != nil && res.StatusCode == http.StatusNotModified {
19186 if res.Body != nil {
19187 res.Body.Close()
19188 }
19189 return nil, gensupport.WrapError(&googleapi.Error{
19190 Code: res.StatusCode,
19191 Header: res.Header,
19192 })
19193 }
19194 if err != nil {
19195 return nil, err
19196 }
19197 defer googleapi.CloseBody(res)
19198 if err := googleapi.CheckResponse(res); err != nil {
19199 return nil, gensupport.WrapError(err)
19200 }
19201 ret := &GooglePrivacyDlpV2JobTrigger{
19202 ServerResponse: googleapi.ServerResponse{
19203 Header: res.Header,
19204 HTTPStatusCode: res.StatusCode,
19205 },
19206 }
19207 target := &ret
19208 if err := gensupport.DecodeResponse(target, res); err != nil {
19209 return nil, err
19210 }
19211 return ret, nil
19212 }
19213
19214 type ProjectsLocationsColumnDataProfilesGetCall struct {
19215 s *Service
19216 name string
19217 urlParams_ gensupport.URLParams
19218 ifNoneMatch_ string
19219 ctx_ context.Context
19220 header_ http.Header
19221 }
19222
19223
19224
19225
19226
19227 func (r *ProjectsLocationsColumnDataProfilesService) Get(name string) *ProjectsLocationsColumnDataProfilesGetCall {
19228 c := &ProjectsLocationsColumnDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19229 c.name = name
19230 return c
19231 }
19232
19233
19234
19235
19236 func (c *ProjectsLocationsColumnDataProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsColumnDataProfilesGetCall {
19237 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19238 return c
19239 }
19240
19241
19242
19243
19244 func (c *ProjectsLocationsColumnDataProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsColumnDataProfilesGetCall {
19245 c.ifNoneMatch_ = entityTag
19246 return c
19247 }
19248
19249
19250 func (c *ProjectsLocationsColumnDataProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsColumnDataProfilesGetCall {
19251 c.ctx_ = ctx
19252 return c
19253 }
19254
19255
19256
19257 func (c *ProjectsLocationsColumnDataProfilesGetCall) Header() http.Header {
19258 if c.header_ == nil {
19259 c.header_ = make(http.Header)
19260 }
19261 return c.header_
19262 }
19263
19264 func (c *ProjectsLocationsColumnDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
19265 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19266 if c.ifNoneMatch_ != "" {
19267 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19268 }
19269 var body io.Reader = nil
19270 c.urlParams_.Set("alt", alt)
19271 c.urlParams_.Set("prettyPrint", "false")
19272 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
19273 urls += "?" + c.urlParams_.Encode()
19274 req, err := http.NewRequest("GET", urls, body)
19275 if err != nil {
19276 return nil, err
19277 }
19278 req.Header = reqHeaders
19279 googleapi.Expand(req.URL, map[string]string{
19280 "name": c.name,
19281 })
19282 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19283 }
19284
19285
19286
19287
19288
19289
19290
19291 func (c *ProjectsLocationsColumnDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ColumnDataProfile, error) {
19292 gensupport.SetOptions(c.urlParams_, opts...)
19293 res, err := c.doRequest("json")
19294 if res != nil && res.StatusCode == http.StatusNotModified {
19295 if res.Body != nil {
19296 res.Body.Close()
19297 }
19298 return nil, gensupport.WrapError(&googleapi.Error{
19299 Code: res.StatusCode,
19300 Header: res.Header,
19301 })
19302 }
19303 if err != nil {
19304 return nil, err
19305 }
19306 defer googleapi.CloseBody(res)
19307 if err := googleapi.CheckResponse(res); err != nil {
19308 return nil, gensupport.WrapError(err)
19309 }
19310 ret := &GooglePrivacyDlpV2ColumnDataProfile{
19311 ServerResponse: googleapi.ServerResponse{
19312 Header: res.Header,
19313 HTTPStatusCode: res.StatusCode,
19314 },
19315 }
19316 target := &ret
19317 if err := gensupport.DecodeResponse(target, res); err != nil {
19318 return nil, err
19319 }
19320 return ret, nil
19321 }
19322
19323 type ProjectsLocationsColumnDataProfilesListCall struct {
19324 s *Service
19325 parent string
19326 urlParams_ gensupport.URLParams
19327 ifNoneMatch_ string
19328 ctx_ context.Context
19329 header_ http.Header
19330 }
19331
19332
19333
19334
19335
19336
19337 func (r *ProjectsLocationsColumnDataProfilesService) List(parent string) *ProjectsLocationsColumnDataProfilesListCall {
19338 c := &ProjectsLocationsColumnDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19339 c.parent = parent
19340 return c
19341 }
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361 func (c *ProjectsLocationsColumnDataProfilesListCall) Filter(filter string) *ProjectsLocationsColumnDataProfilesListCall {
19362 c.urlParams_.Set("filter", filter)
19363 return c
19364 }
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377 func (c *ProjectsLocationsColumnDataProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsColumnDataProfilesListCall {
19378 c.urlParams_.Set("orderBy", orderBy)
19379 return c
19380 }
19381
19382
19383
19384
19385 func (c *ProjectsLocationsColumnDataProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsColumnDataProfilesListCall {
19386 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19387 return c
19388 }
19389
19390
19391
19392 func (c *ProjectsLocationsColumnDataProfilesListCall) PageToken(pageToken string) *ProjectsLocationsColumnDataProfilesListCall {
19393 c.urlParams_.Set("pageToken", pageToken)
19394 return c
19395 }
19396
19397
19398
19399
19400 func (c *ProjectsLocationsColumnDataProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsColumnDataProfilesListCall {
19401 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19402 return c
19403 }
19404
19405
19406
19407
19408 func (c *ProjectsLocationsColumnDataProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsColumnDataProfilesListCall {
19409 c.ifNoneMatch_ = entityTag
19410 return c
19411 }
19412
19413
19414 func (c *ProjectsLocationsColumnDataProfilesListCall) Context(ctx context.Context) *ProjectsLocationsColumnDataProfilesListCall {
19415 c.ctx_ = ctx
19416 return c
19417 }
19418
19419
19420
19421 func (c *ProjectsLocationsColumnDataProfilesListCall) Header() http.Header {
19422 if c.header_ == nil {
19423 c.header_ = make(http.Header)
19424 }
19425 return c.header_
19426 }
19427
19428 func (c *ProjectsLocationsColumnDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
19429 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19430 if c.ifNoneMatch_ != "" {
19431 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19432 }
19433 var body io.Reader = nil
19434 c.urlParams_.Set("alt", alt)
19435 c.urlParams_.Set("prettyPrint", "false")
19436 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/columnDataProfiles")
19437 urls += "?" + c.urlParams_.Encode()
19438 req, err := http.NewRequest("GET", urls, body)
19439 if err != nil {
19440 return nil, err
19441 }
19442 req.Header = reqHeaders
19443 googleapi.Expand(req.URL, map[string]string{
19444 "parent": c.parent,
19445 })
19446 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19447 }
19448
19449
19450
19451
19452
19453
19454
19455 func (c *ProjectsLocationsColumnDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListColumnDataProfilesResponse, error) {
19456 gensupport.SetOptions(c.urlParams_, opts...)
19457 res, err := c.doRequest("json")
19458 if res != nil && res.StatusCode == http.StatusNotModified {
19459 if res.Body != nil {
19460 res.Body.Close()
19461 }
19462 return nil, gensupport.WrapError(&googleapi.Error{
19463 Code: res.StatusCode,
19464 Header: res.Header,
19465 })
19466 }
19467 if err != nil {
19468 return nil, err
19469 }
19470 defer googleapi.CloseBody(res)
19471 if err := googleapi.CheckResponse(res); err != nil {
19472 return nil, gensupport.WrapError(err)
19473 }
19474 ret := &GooglePrivacyDlpV2ListColumnDataProfilesResponse{
19475 ServerResponse: googleapi.ServerResponse{
19476 Header: res.Header,
19477 HTTPStatusCode: res.StatusCode,
19478 },
19479 }
19480 target := &ret
19481 if err := gensupport.DecodeResponse(target, res); err != nil {
19482 return nil, err
19483 }
19484 return ret, nil
19485 }
19486
19487
19488
19489
19490 func (c *ProjectsLocationsColumnDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListColumnDataProfilesResponse) error) error {
19491 c.ctx_ = ctx
19492 defer c.PageToken(c.urlParams_.Get("pageToken"))
19493 for {
19494 x, err := c.Do()
19495 if err != nil {
19496 return err
19497 }
19498 if err := f(x); err != nil {
19499 return err
19500 }
19501 if x.NextPageToken == "" {
19502 return nil
19503 }
19504 c.PageToken(x.NextPageToken)
19505 }
19506 }
19507
19508 type ProjectsLocationsConnectionsCreateCall struct {
19509 s *Service
19510 parent string
19511 googleprivacydlpv2createconnectionrequest *GooglePrivacyDlpV2CreateConnectionRequest
19512 urlParams_ gensupport.URLParams
19513 ctx_ context.Context
19514 header_ http.Header
19515 }
19516
19517
19518
19519
19520
19521 func (r *ProjectsLocationsConnectionsService) Create(parent string, googleprivacydlpv2createconnectionrequest *GooglePrivacyDlpV2CreateConnectionRequest) *ProjectsLocationsConnectionsCreateCall {
19522 c := &ProjectsLocationsConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19523 c.parent = parent
19524 c.googleprivacydlpv2createconnectionrequest = googleprivacydlpv2createconnectionrequest
19525 return c
19526 }
19527
19528
19529
19530
19531 func (c *ProjectsLocationsConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsCreateCall {
19532 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19533 return c
19534 }
19535
19536
19537 func (c *ProjectsLocationsConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionsCreateCall {
19538 c.ctx_ = ctx
19539 return c
19540 }
19541
19542
19543
19544 func (c *ProjectsLocationsConnectionsCreateCall) Header() http.Header {
19545 if c.header_ == nil {
19546 c.header_ = make(http.Header)
19547 }
19548 return c.header_
19549 }
19550
19551 func (c *ProjectsLocationsConnectionsCreateCall) doRequest(alt string) (*http.Response, error) {
19552 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19553 var body io.Reader = nil
19554 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createconnectionrequest)
19555 if err != nil {
19556 return nil, err
19557 }
19558 c.urlParams_.Set("alt", alt)
19559 c.urlParams_.Set("prettyPrint", "false")
19560 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/connections")
19561 urls += "?" + c.urlParams_.Encode()
19562 req, err := http.NewRequest("POST", urls, body)
19563 if err != nil {
19564 return nil, err
19565 }
19566 req.Header = reqHeaders
19567 googleapi.Expand(req.URL, map[string]string{
19568 "parent": c.parent,
19569 })
19570 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19571 }
19572
19573
19574
19575
19576
19577
19578
19579 func (c *ProjectsLocationsConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2Connection, error) {
19580 gensupport.SetOptions(c.urlParams_, opts...)
19581 res, err := c.doRequest("json")
19582 if res != nil && res.StatusCode == http.StatusNotModified {
19583 if res.Body != nil {
19584 res.Body.Close()
19585 }
19586 return nil, gensupport.WrapError(&googleapi.Error{
19587 Code: res.StatusCode,
19588 Header: res.Header,
19589 })
19590 }
19591 if err != nil {
19592 return nil, err
19593 }
19594 defer googleapi.CloseBody(res)
19595 if err := googleapi.CheckResponse(res); err != nil {
19596 return nil, gensupport.WrapError(err)
19597 }
19598 ret := &GooglePrivacyDlpV2Connection{
19599 ServerResponse: googleapi.ServerResponse{
19600 Header: res.Header,
19601 HTTPStatusCode: res.StatusCode,
19602 },
19603 }
19604 target := &ret
19605 if err := gensupport.DecodeResponse(target, res); err != nil {
19606 return nil, err
19607 }
19608 return ret, nil
19609 }
19610
19611 type ProjectsLocationsConnectionsDeleteCall struct {
19612 s *Service
19613 name string
19614 urlParams_ gensupport.URLParams
19615 ctx_ context.Context
19616 header_ http.Header
19617 }
19618
19619
19620
19621
19622
19623 func (r *ProjectsLocationsConnectionsService) Delete(name string) *ProjectsLocationsConnectionsDeleteCall {
19624 c := &ProjectsLocationsConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19625 c.name = name
19626 return c
19627 }
19628
19629
19630
19631
19632 func (c *ProjectsLocationsConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsDeleteCall {
19633 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19634 return c
19635 }
19636
19637
19638 func (c *ProjectsLocationsConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionsDeleteCall {
19639 c.ctx_ = ctx
19640 return c
19641 }
19642
19643
19644
19645 func (c *ProjectsLocationsConnectionsDeleteCall) Header() http.Header {
19646 if c.header_ == nil {
19647 c.header_ = make(http.Header)
19648 }
19649 return c.header_
19650 }
19651
19652 func (c *ProjectsLocationsConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) {
19653 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19654 var body io.Reader = nil
19655 c.urlParams_.Set("alt", alt)
19656 c.urlParams_.Set("prettyPrint", "false")
19657 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
19658 urls += "?" + c.urlParams_.Encode()
19659 req, err := http.NewRequest("DELETE", urls, body)
19660 if err != nil {
19661 return nil, err
19662 }
19663 req.Header = reqHeaders
19664 googleapi.Expand(req.URL, map[string]string{
19665 "name": c.name,
19666 })
19667 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19668 }
19669
19670
19671
19672
19673
19674
19675
19676 func (c *ProjectsLocationsConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19677 gensupport.SetOptions(c.urlParams_, opts...)
19678 res, err := c.doRequest("json")
19679 if res != nil && res.StatusCode == http.StatusNotModified {
19680 if res.Body != nil {
19681 res.Body.Close()
19682 }
19683 return nil, gensupport.WrapError(&googleapi.Error{
19684 Code: res.StatusCode,
19685 Header: res.Header,
19686 })
19687 }
19688 if err != nil {
19689 return nil, err
19690 }
19691 defer googleapi.CloseBody(res)
19692 if err := googleapi.CheckResponse(res); err != nil {
19693 return nil, gensupport.WrapError(err)
19694 }
19695 ret := &GoogleProtobufEmpty{
19696 ServerResponse: googleapi.ServerResponse{
19697 Header: res.Header,
19698 HTTPStatusCode: res.StatusCode,
19699 },
19700 }
19701 target := &ret
19702 if err := gensupport.DecodeResponse(target, res); err != nil {
19703 return nil, err
19704 }
19705 return ret, nil
19706 }
19707
19708 type ProjectsLocationsConnectionsGetCall struct {
19709 s *Service
19710 name string
19711 urlParams_ gensupport.URLParams
19712 ifNoneMatch_ string
19713 ctx_ context.Context
19714 header_ http.Header
19715 }
19716
19717
19718
19719
19720
19721 func (r *ProjectsLocationsConnectionsService) Get(name string) *ProjectsLocationsConnectionsGetCall {
19722 c := &ProjectsLocationsConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19723 c.name = name
19724 return c
19725 }
19726
19727
19728
19729
19730 func (c *ProjectsLocationsConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsGetCall {
19731 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19732 return c
19733 }
19734
19735
19736
19737
19738 func (c *ProjectsLocationsConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsGetCall {
19739 c.ifNoneMatch_ = entityTag
19740 return c
19741 }
19742
19743
19744 func (c *ProjectsLocationsConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionsGetCall {
19745 c.ctx_ = ctx
19746 return c
19747 }
19748
19749
19750
19751 func (c *ProjectsLocationsConnectionsGetCall) Header() http.Header {
19752 if c.header_ == nil {
19753 c.header_ = make(http.Header)
19754 }
19755 return c.header_
19756 }
19757
19758 func (c *ProjectsLocationsConnectionsGetCall) doRequest(alt string) (*http.Response, error) {
19759 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19760 if c.ifNoneMatch_ != "" {
19761 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19762 }
19763 var body io.Reader = nil
19764 c.urlParams_.Set("alt", alt)
19765 c.urlParams_.Set("prettyPrint", "false")
19766 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
19767 urls += "?" + c.urlParams_.Encode()
19768 req, err := http.NewRequest("GET", urls, body)
19769 if err != nil {
19770 return nil, err
19771 }
19772 req.Header = reqHeaders
19773 googleapi.Expand(req.URL, map[string]string{
19774 "name": c.name,
19775 })
19776 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19777 }
19778
19779
19780
19781
19782
19783
19784
19785 func (c *ProjectsLocationsConnectionsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2Connection, error) {
19786 gensupport.SetOptions(c.urlParams_, opts...)
19787 res, err := c.doRequest("json")
19788 if res != nil && res.StatusCode == http.StatusNotModified {
19789 if res.Body != nil {
19790 res.Body.Close()
19791 }
19792 return nil, gensupport.WrapError(&googleapi.Error{
19793 Code: res.StatusCode,
19794 Header: res.Header,
19795 })
19796 }
19797 if err != nil {
19798 return nil, err
19799 }
19800 defer googleapi.CloseBody(res)
19801 if err := googleapi.CheckResponse(res); err != nil {
19802 return nil, gensupport.WrapError(err)
19803 }
19804 ret := &GooglePrivacyDlpV2Connection{
19805 ServerResponse: googleapi.ServerResponse{
19806 Header: res.Header,
19807 HTTPStatusCode: res.StatusCode,
19808 },
19809 }
19810 target := &ret
19811 if err := gensupport.DecodeResponse(target, res); err != nil {
19812 return nil, err
19813 }
19814 return ret, nil
19815 }
19816
19817 type ProjectsLocationsConnectionsListCall struct {
19818 s *Service
19819 parent string
19820 urlParams_ gensupport.URLParams
19821 ifNoneMatch_ string
19822 ctx_ context.Context
19823 header_ http.Header
19824 }
19825
19826
19827
19828
19829 func (r *ProjectsLocationsConnectionsService) List(parent string) *ProjectsLocationsConnectionsListCall {
19830 c := &ProjectsLocationsConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19831 c.parent = parent
19832 return c
19833 }
19834
19835
19836
19837 func (c *ProjectsLocationsConnectionsListCall) Filter(filter string) *ProjectsLocationsConnectionsListCall {
19838 c.urlParams_.Set("filter", filter)
19839 return c
19840 }
19841
19842
19843
19844 func (c *ProjectsLocationsConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsListCall {
19845 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19846 return c
19847 }
19848
19849
19850
19851
19852 func (c *ProjectsLocationsConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsConnectionsListCall {
19853 c.urlParams_.Set("pageToken", pageToken)
19854 return c
19855 }
19856
19857
19858
19859
19860 func (c *ProjectsLocationsConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsListCall {
19861 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19862 return c
19863 }
19864
19865
19866
19867
19868 func (c *ProjectsLocationsConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsListCall {
19869 c.ifNoneMatch_ = entityTag
19870 return c
19871 }
19872
19873
19874 func (c *ProjectsLocationsConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsConnectionsListCall {
19875 c.ctx_ = ctx
19876 return c
19877 }
19878
19879
19880
19881 func (c *ProjectsLocationsConnectionsListCall) Header() http.Header {
19882 if c.header_ == nil {
19883 c.header_ = make(http.Header)
19884 }
19885 return c.header_
19886 }
19887
19888 func (c *ProjectsLocationsConnectionsListCall) doRequest(alt string) (*http.Response, error) {
19889 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19890 if c.ifNoneMatch_ != "" {
19891 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19892 }
19893 var body io.Reader = nil
19894 c.urlParams_.Set("alt", alt)
19895 c.urlParams_.Set("prettyPrint", "false")
19896 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/connections")
19897 urls += "?" + c.urlParams_.Encode()
19898 req, err := http.NewRequest("GET", urls, body)
19899 if err != nil {
19900 return nil, err
19901 }
19902 req.Header = reqHeaders
19903 googleapi.Expand(req.URL, map[string]string{
19904 "parent": c.parent,
19905 })
19906 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19907 }
19908
19909
19910
19911
19912
19913
19914
19915 func (c *ProjectsLocationsConnectionsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListConnectionsResponse, error) {
19916 gensupport.SetOptions(c.urlParams_, opts...)
19917 res, err := c.doRequest("json")
19918 if res != nil && res.StatusCode == http.StatusNotModified {
19919 if res.Body != nil {
19920 res.Body.Close()
19921 }
19922 return nil, gensupport.WrapError(&googleapi.Error{
19923 Code: res.StatusCode,
19924 Header: res.Header,
19925 })
19926 }
19927 if err != nil {
19928 return nil, err
19929 }
19930 defer googleapi.CloseBody(res)
19931 if err := googleapi.CheckResponse(res); err != nil {
19932 return nil, gensupport.WrapError(err)
19933 }
19934 ret := &GooglePrivacyDlpV2ListConnectionsResponse{
19935 ServerResponse: googleapi.ServerResponse{
19936 Header: res.Header,
19937 HTTPStatusCode: res.StatusCode,
19938 },
19939 }
19940 target := &ret
19941 if err := gensupport.DecodeResponse(target, res); err != nil {
19942 return nil, err
19943 }
19944 return ret, nil
19945 }
19946
19947
19948
19949
19950 func (c *ProjectsLocationsConnectionsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListConnectionsResponse) error) error {
19951 c.ctx_ = ctx
19952 defer c.PageToken(c.urlParams_.Get("pageToken"))
19953 for {
19954 x, err := c.Do()
19955 if err != nil {
19956 return err
19957 }
19958 if err := f(x); err != nil {
19959 return err
19960 }
19961 if x.NextPageToken == "" {
19962 return nil
19963 }
19964 c.PageToken(x.NextPageToken)
19965 }
19966 }
19967
19968 type ProjectsLocationsConnectionsPatchCall struct {
19969 s *Service
19970 name string
19971 googleprivacydlpv2updateconnectionrequest *GooglePrivacyDlpV2UpdateConnectionRequest
19972 urlParams_ gensupport.URLParams
19973 ctx_ context.Context
19974 header_ http.Header
19975 }
19976
19977
19978
19979
19980
19981 func (r *ProjectsLocationsConnectionsService) Patch(name string, googleprivacydlpv2updateconnectionrequest *GooglePrivacyDlpV2UpdateConnectionRequest) *ProjectsLocationsConnectionsPatchCall {
19982 c := &ProjectsLocationsConnectionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19983 c.name = name
19984 c.googleprivacydlpv2updateconnectionrequest = googleprivacydlpv2updateconnectionrequest
19985 return c
19986 }
19987
19988
19989
19990
19991 func (c *ProjectsLocationsConnectionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsPatchCall {
19992 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19993 return c
19994 }
19995
19996
19997 func (c *ProjectsLocationsConnectionsPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsPatchCall {
19998 c.ctx_ = ctx
19999 return c
20000 }
20001
20002
20003
20004 func (c *ProjectsLocationsConnectionsPatchCall) Header() http.Header {
20005 if c.header_ == nil {
20006 c.header_ = make(http.Header)
20007 }
20008 return c.header_
20009 }
20010
20011 func (c *ProjectsLocationsConnectionsPatchCall) doRequest(alt string) (*http.Response, error) {
20012 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20013 var body io.Reader = nil
20014 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateconnectionrequest)
20015 if err != nil {
20016 return nil, err
20017 }
20018 c.urlParams_.Set("alt", alt)
20019 c.urlParams_.Set("prettyPrint", "false")
20020 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
20021 urls += "?" + c.urlParams_.Encode()
20022 req, err := http.NewRequest("PATCH", urls, body)
20023 if err != nil {
20024 return nil, err
20025 }
20026 req.Header = reqHeaders
20027 googleapi.Expand(req.URL, map[string]string{
20028 "name": c.name,
20029 })
20030 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20031 }
20032
20033
20034
20035
20036
20037
20038
20039 func (c *ProjectsLocationsConnectionsPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2Connection, error) {
20040 gensupport.SetOptions(c.urlParams_, opts...)
20041 res, err := c.doRequest("json")
20042 if res != nil && res.StatusCode == http.StatusNotModified {
20043 if res.Body != nil {
20044 res.Body.Close()
20045 }
20046 return nil, gensupport.WrapError(&googleapi.Error{
20047 Code: res.StatusCode,
20048 Header: res.Header,
20049 })
20050 }
20051 if err != nil {
20052 return nil, err
20053 }
20054 defer googleapi.CloseBody(res)
20055 if err := googleapi.CheckResponse(res); err != nil {
20056 return nil, gensupport.WrapError(err)
20057 }
20058 ret := &GooglePrivacyDlpV2Connection{
20059 ServerResponse: googleapi.ServerResponse{
20060 Header: res.Header,
20061 HTTPStatusCode: res.StatusCode,
20062 },
20063 }
20064 target := &ret
20065 if err := gensupport.DecodeResponse(target, res); err != nil {
20066 return nil, err
20067 }
20068 return ret, nil
20069 }
20070
20071 type ProjectsLocationsConnectionsSearchCall struct {
20072 s *Service
20073 parent string
20074 urlParams_ gensupport.URLParams
20075 ifNoneMatch_ string
20076 ctx_ context.Context
20077 header_ http.Header
20078 }
20079
20080
20081
20082
20083
20084 func (r *ProjectsLocationsConnectionsService) Search(parent string) *ProjectsLocationsConnectionsSearchCall {
20085 c := &ProjectsLocationsConnectionsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20086 c.parent = parent
20087 return c
20088 }
20089
20090
20091
20092 func (c *ProjectsLocationsConnectionsSearchCall) Filter(filter string) *ProjectsLocationsConnectionsSearchCall {
20093 c.urlParams_.Set("filter", filter)
20094 return c
20095 }
20096
20097
20098
20099 func (c *ProjectsLocationsConnectionsSearchCall) PageSize(pageSize int64) *ProjectsLocationsConnectionsSearchCall {
20100 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20101 return c
20102 }
20103
20104
20105
20106
20107 func (c *ProjectsLocationsConnectionsSearchCall) PageToken(pageToken string) *ProjectsLocationsConnectionsSearchCall {
20108 c.urlParams_.Set("pageToken", pageToken)
20109 return c
20110 }
20111
20112
20113
20114
20115 func (c *ProjectsLocationsConnectionsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionsSearchCall {
20116 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20117 return c
20118 }
20119
20120
20121
20122
20123 func (c *ProjectsLocationsConnectionsSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionsSearchCall {
20124 c.ifNoneMatch_ = entityTag
20125 return c
20126 }
20127
20128
20129 func (c *ProjectsLocationsConnectionsSearchCall) Context(ctx context.Context) *ProjectsLocationsConnectionsSearchCall {
20130 c.ctx_ = ctx
20131 return c
20132 }
20133
20134
20135
20136 func (c *ProjectsLocationsConnectionsSearchCall) Header() http.Header {
20137 if c.header_ == nil {
20138 c.header_ = make(http.Header)
20139 }
20140 return c.header_
20141 }
20142
20143 func (c *ProjectsLocationsConnectionsSearchCall) doRequest(alt string) (*http.Response, error) {
20144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20145 if c.ifNoneMatch_ != "" {
20146 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20147 }
20148 var body io.Reader = nil
20149 c.urlParams_.Set("alt", alt)
20150 c.urlParams_.Set("prettyPrint", "false")
20151 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/connections:search")
20152 urls += "?" + c.urlParams_.Encode()
20153 req, err := http.NewRequest("GET", urls, body)
20154 if err != nil {
20155 return nil, err
20156 }
20157 req.Header = reqHeaders
20158 googleapi.Expand(req.URL, map[string]string{
20159 "parent": c.parent,
20160 })
20161 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20162 }
20163
20164
20165
20166
20167
20168
20169
20170 func (c *ProjectsLocationsConnectionsSearchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2SearchConnectionsResponse, error) {
20171 gensupport.SetOptions(c.urlParams_, opts...)
20172 res, err := c.doRequest("json")
20173 if res != nil && res.StatusCode == http.StatusNotModified {
20174 if res.Body != nil {
20175 res.Body.Close()
20176 }
20177 return nil, gensupport.WrapError(&googleapi.Error{
20178 Code: res.StatusCode,
20179 Header: res.Header,
20180 })
20181 }
20182 if err != nil {
20183 return nil, err
20184 }
20185 defer googleapi.CloseBody(res)
20186 if err := googleapi.CheckResponse(res); err != nil {
20187 return nil, gensupport.WrapError(err)
20188 }
20189 ret := &GooglePrivacyDlpV2SearchConnectionsResponse{
20190 ServerResponse: googleapi.ServerResponse{
20191 Header: res.Header,
20192 HTTPStatusCode: res.StatusCode,
20193 },
20194 }
20195 target := &ret
20196 if err := gensupport.DecodeResponse(target, res); err != nil {
20197 return nil, err
20198 }
20199 return ret, nil
20200 }
20201
20202
20203
20204
20205 func (c *ProjectsLocationsConnectionsSearchCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2SearchConnectionsResponse) error) error {
20206 c.ctx_ = ctx
20207 defer c.PageToken(c.urlParams_.Get("pageToken"))
20208 for {
20209 x, err := c.Do()
20210 if err != nil {
20211 return err
20212 }
20213 if err := f(x); err != nil {
20214 return err
20215 }
20216 if x.NextPageToken == "" {
20217 return nil
20218 }
20219 c.PageToken(x.NextPageToken)
20220 }
20221 }
20222
20223 type ProjectsLocationsContentDeidentifyCall struct {
20224 s *Service
20225 parentid string
20226 googleprivacydlpv2deidentifycontentrequest *GooglePrivacyDlpV2DeidentifyContentRequest
20227 urlParams_ gensupport.URLParams
20228 ctx_ context.Context
20229 header_ http.Header
20230 }
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250 func (r *ProjectsLocationsContentService) Deidentify(parentid string, googleprivacydlpv2deidentifycontentrequest *GooglePrivacyDlpV2DeidentifyContentRequest) *ProjectsLocationsContentDeidentifyCall {
20251 c := &ProjectsLocationsContentDeidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20252 c.parentid = parentid
20253 c.googleprivacydlpv2deidentifycontentrequest = googleprivacydlpv2deidentifycontentrequest
20254 return c
20255 }
20256
20257
20258
20259
20260 func (c *ProjectsLocationsContentDeidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsContentDeidentifyCall {
20261 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20262 return c
20263 }
20264
20265
20266 func (c *ProjectsLocationsContentDeidentifyCall) Context(ctx context.Context) *ProjectsLocationsContentDeidentifyCall {
20267 c.ctx_ = ctx
20268 return c
20269 }
20270
20271
20272
20273 func (c *ProjectsLocationsContentDeidentifyCall) Header() http.Header {
20274 if c.header_ == nil {
20275 c.header_ = make(http.Header)
20276 }
20277 return c.header_
20278 }
20279
20280 func (c *ProjectsLocationsContentDeidentifyCall) doRequest(alt string) (*http.Response, error) {
20281 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20282 var body io.Reader = nil
20283 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2deidentifycontentrequest)
20284 if err != nil {
20285 return nil, err
20286 }
20287 c.urlParams_.Set("alt", alt)
20288 c.urlParams_.Set("prettyPrint", "false")
20289 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:deidentify")
20290 urls += "?" + c.urlParams_.Encode()
20291 req, err := http.NewRequest("POST", urls, body)
20292 if err != nil {
20293 return nil, err
20294 }
20295 req.Header = reqHeaders
20296 googleapi.Expand(req.URL, map[string]string{
20297 "parent": c.parentid,
20298 })
20299 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20300 }
20301
20302
20303
20304
20305
20306
20307
20308 func (c *ProjectsLocationsContentDeidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyContentResponse, error) {
20309 gensupport.SetOptions(c.urlParams_, opts...)
20310 res, err := c.doRequest("json")
20311 if res != nil && res.StatusCode == http.StatusNotModified {
20312 if res.Body != nil {
20313 res.Body.Close()
20314 }
20315 return nil, gensupport.WrapError(&googleapi.Error{
20316 Code: res.StatusCode,
20317 Header: res.Header,
20318 })
20319 }
20320 if err != nil {
20321 return nil, err
20322 }
20323 defer googleapi.CloseBody(res)
20324 if err := googleapi.CheckResponse(res); err != nil {
20325 return nil, gensupport.WrapError(err)
20326 }
20327 ret := &GooglePrivacyDlpV2DeidentifyContentResponse{
20328 ServerResponse: googleapi.ServerResponse{
20329 Header: res.Header,
20330 HTTPStatusCode: res.StatusCode,
20331 },
20332 }
20333 target := &ret
20334 if err := gensupport.DecodeResponse(target, res); err != nil {
20335 return nil, err
20336 }
20337 return ret, nil
20338 }
20339
20340 type ProjectsLocationsContentInspectCall struct {
20341 s *Service
20342 parentid string
20343 googleprivacydlpv2inspectcontentrequest *GooglePrivacyDlpV2InspectContentRequest
20344 urlParams_ gensupport.URLParams
20345 ctx_ context.Context
20346 header_ http.Header
20347 }
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367 func (r *ProjectsLocationsContentService) Inspect(parentid string, googleprivacydlpv2inspectcontentrequest *GooglePrivacyDlpV2InspectContentRequest) *ProjectsLocationsContentInspectCall {
20368 c := &ProjectsLocationsContentInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20369 c.parentid = parentid
20370 c.googleprivacydlpv2inspectcontentrequest = googleprivacydlpv2inspectcontentrequest
20371 return c
20372 }
20373
20374
20375
20376
20377 func (c *ProjectsLocationsContentInspectCall) Fields(s ...googleapi.Field) *ProjectsLocationsContentInspectCall {
20378 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20379 return c
20380 }
20381
20382
20383 func (c *ProjectsLocationsContentInspectCall) Context(ctx context.Context) *ProjectsLocationsContentInspectCall {
20384 c.ctx_ = ctx
20385 return c
20386 }
20387
20388
20389
20390 func (c *ProjectsLocationsContentInspectCall) Header() http.Header {
20391 if c.header_ == nil {
20392 c.header_ = make(http.Header)
20393 }
20394 return c.header_
20395 }
20396
20397 func (c *ProjectsLocationsContentInspectCall) doRequest(alt string) (*http.Response, error) {
20398 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20399 var body io.Reader = nil
20400 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2inspectcontentrequest)
20401 if err != nil {
20402 return nil, err
20403 }
20404 c.urlParams_.Set("alt", alt)
20405 c.urlParams_.Set("prettyPrint", "false")
20406 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:inspect")
20407 urls += "?" + c.urlParams_.Encode()
20408 req, err := http.NewRequest("POST", urls, body)
20409 if err != nil {
20410 return nil, err
20411 }
20412 req.Header = reqHeaders
20413 googleapi.Expand(req.URL, map[string]string{
20414 "parent": c.parentid,
20415 })
20416 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20417 }
20418
20419
20420
20421
20422
20423
20424
20425 func (c *ProjectsLocationsContentInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectContentResponse, error) {
20426 gensupport.SetOptions(c.urlParams_, opts...)
20427 res, err := c.doRequest("json")
20428 if res != nil && res.StatusCode == http.StatusNotModified {
20429 if res.Body != nil {
20430 res.Body.Close()
20431 }
20432 return nil, gensupport.WrapError(&googleapi.Error{
20433 Code: res.StatusCode,
20434 Header: res.Header,
20435 })
20436 }
20437 if err != nil {
20438 return nil, err
20439 }
20440 defer googleapi.CloseBody(res)
20441 if err := googleapi.CheckResponse(res); err != nil {
20442 return nil, gensupport.WrapError(err)
20443 }
20444 ret := &GooglePrivacyDlpV2InspectContentResponse{
20445 ServerResponse: googleapi.ServerResponse{
20446 Header: res.Header,
20447 HTTPStatusCode: res.StatusCode,
20448 },
20449 }
20450 target := &ret
20451 if err := gensupport.DecodeResponse(target, res); err != nil {
20452 return nil, err
20453 }
20454 return ret, nil
20455 }
20456
20457 type ProjectsLocationsContentReidentifyCall struct {
20458 s *Service
20459 parentid string
20460 googleprivacydlpv2reidentifycontentrequest *GooglePrivacyDlpV2ReidentifyContentRequest
20461 urlParams_ gensupport.URLParams
20462 ctx_ context.Context
20463 header_ http.Header
20464 }
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480 func (r *ProjectsLocationsContentService) Reidentify(parentid string, googleprivacydlpv2reidentifycontentrequest *GooglePrivacyDlpV2ReidentifyContentRequest) *ProjectsLocationsContentReidentifyCall {
20481 c := &ProjectsLocationsContentReidentifyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20482 c.parentid = parentid
20483 c.googleprivacydlpv2reidentifycontentrequest = googleprivacydlpv2reidentifycontentrequest
20484 return c
20485 }
20486
20487
20488
20489
20490 func (c *ProjectsLocationsContentReidentifyCall) Fields(s ...googleapi.Field) *ProjectsLocationsContentReidentifyCall {
20491 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20492 return c
20493 }
20494
20495
20496 func (c *ProjectsLocationsContentReidentifyCall) Context(ctx context.Context) *ProjectsLocationsContentReidentifyCall {
20497 c.ctx_ = ctx
20498 return c
20499 }
20500
20501
20502
20503 func (c *ProjectsLocationsContentReidentifyCall) Header() http.Header {
20504 if c.header_ == nil {
20505 c.header_ = make(http.Header)
20506 }
20507 return c.header_
20508 }
20509
20510 func (c *ProjectsLocationsContentReidentifyCall) doRequest(alt string) (*http.Response, error) {
20511 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20512 var body io.Reader = nil
20513 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2reidentifycontentrequest)
20514 if err != nil {
20515 return nil, err
20516 }
20517 c.urlParams_.Set("alt", alt)
20518 c.urlParams_.Set("prettyPrint", "false")
20519 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/content:reidentify")
20520 urls += "?" + c.urlParams_.Encode()
20521 req, err := http.NewRequest("POST", urls, body)
20522 if err != nil {
20523 return nil, err
20524 }
20525 req.Header = reqHeaders
20526 googleapi.Expand(req.URL, map[string]string{
20527 "parent": c.parentid,
20528 })
20529 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20530 }
20531
20532
20533
20534
20535
20536
20537
20538 func (c *ProjectsLocationsContentReidentifyCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ReidentifyContentResponse, error) {
20539 gensupport.SetOptions(c.urlParams_, opts...)
20540 res, err := c.doRequest("json")
20541 if res != nil && res.StatusCode == http.StatusNotModified {
20542 if res.Body != nil {
20543 res.Body.Close()
20544 }
20545 return nil, gensupport.WrapError(&googleapi.Error{
20546 Code: res.StatusCode,
20547 Header: res.Header,
20548 })
20549 }
20550 if err != nil {
20551 return nil, err
20552 }
20553 defer googleapi.CloseBody(res)
20554 if err := googleapi.CheckResponse(res); err != nil {
20555 return nil, gensupport.WrapError(err)
20556 }
20557 ret := &GooglePrivacyDlpV2ReidentifyContentResponse{
20558 ServerResponse: googleapi.ServerResponse{
20559 Header: res.Header,
20560 HTTPStatusCode: res.StatusCode,
20561 },
20562 }
20563 target := &ret
20564 if err := gensupport.DecodeResponse(target, res); err != nil {
20565 return nil, err
20566 }
20567 return ret, nil
20568 }
20569
20570 type ProjectsLocationsDeidentifyTemplatesCreateCall struct {
20571 s *Service
20572 parentid string
20573 googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest
20574 urlParams_ gensupport.URLParams
20575 ctx_ context.Context
20576 header_ http.Header
20577 }
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598 func (r *ProjectsLocationsDeidentifyTemplatesService) Create(parentid string, googleprivacydlpv2createdeidentifytemplaterequest *GooglePrivacyDlpV2CreateDeidentifyTemplateRequest) *ProjectsLocationsDeidentifyTemplatesCreateCall {
20599 c := &ProjectsLocationsDeidentifyTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20600 c.parentid = parentid
20601 c.googleprivacydlpv2createdeidentifytemplaterequest = googleprivacydlpv2createdeidentifytemplaterequest
20602 return c
20603 }
20604
20605
20606
20607
20608 func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesCreateCall {
20609 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20610 return c
20611 }
20612
20613
20614 func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesCreateCall {
20615 c.ctx_ = ctx
20616 return c
20617 }
20618
20619
20620
20621 func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Header() http.Header {
20622 if c.header_ == nil {
20623 c.header_ = make(http.Header)
20624 }
20625 return c.header_
20626 }
20627
20628 func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
20629 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20630 var body io.Reader = nil
20631 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdeidentifytemplaterequest)
20632 if err != nil {
20633 return nil, err
20634 }
20635 c.urlParams_.Set("alt", alt)
20636 c.urlParams_.Set("prettyPrint", "false")
20637 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
20638 urls += "?" + c.urlParams_.Encode()
20639 req, err := http.NewRequest("POST", urls, body)
20640 if err != nil {
20641 return nil, err
20642 }
20643 req.Header = reqHeaders
20644 googleapi.Expand(req.URL, map[string]string{
20645 "parent": c.parentid,
20646 })
20647 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20648 }
20649
20650
20651
20652
20653
20654
20655
20656 func (c *ProjectsLocationsDeidentifyTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
20657 gensupport.SetOptions(c.urlParams_, opts...)
20658 res, err := c.doRequest("json")
20659 if res != nil && res.StatusCode == http.StatusNotModified {
20660 if res.Body != nil {
20661 res.Body.Close()
20662 }
20663 return nil, gensupport.WrapError(&googleapi.Error{
20664 Code: res.StatusCode,
20665 Header: res.Header,
20666 })
20667 }
20668 if err != nil {
20669 return nil, err
20670 }
20671 defer googleapi.CloseBody(res)
20672 if err := googleapi.CheckResponse(res); err != nil {
20673 return nil, gensupport.WrapError(err)
20674 }
20675 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
20676 ServerResponse: googleapi.ServerResponse{
20677 Header: res.Header,
20678 HTTPStatusCode: res.StatusCode,
20679 },
20680 }
20681 target := &ret
20682 if err := gensupport.DecodeResponse(target, res); err != nil {
20683 return nil, err
20684 }
20685 return ret, nil
20686 }
20687
20688 type ProjectsLocationsDeidentifyTemplatesDeleteCall struct {
20689 s *Service
20690 name string
20691 urlParams_ gensupport.URLParams
20692 ctx_ context.Context
20693 header_ http.Header
20694 }
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704 func (r *ProjectsLocationsDeidentifyTemplatesService) Delete(name string) *ProjectsLocationsDeidentifyTemplatesDeleteCall {
20705 c := &ProjectsLocationsDeidentifyTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20706 c.name = name
20707 return c
20708 }
20709
20710
20711
20712
20713 func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesDeleteCall {
20714 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20715 return c
20716 }
20717
20718
20719 func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesDeleteCall {
20720 c.ctx_ = ctx
20721 return c
20722 }
20723
20724
20725
20726 func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Header() http.Header {
20727 if c.header_ == nil {
20728 c.header_ = make(http.Header)
20729 }
20730 return c.header_
20731 }
20732
20733 func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
20734 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20735 var body io.Reader = nil
20736 c.urlParams_.Set("alt", alt)
20737 c.urlParams_.Set("prettyPrint", "false")
20738 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
20739 urls += "?" + c.urlParams_.Encode()
20740 req, err := http.NewRequest("DELETE", urls, body)
20741 if err != nil {
20742 return nil, err
20743 }
20744 req.Header = reqHeaders
20745 googleapi.Expand(req.URL, map[string]string{
20746 "name": c.name,
20747 })
20748 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20749 }
20750
20751
20752
20753
20754
20755
20756
20757 func (c *ProjectsLocationsDeidentifyTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20758 gensupport.SetOptions(c.urlParams_, opts...)
20759 res, err := c.doRequest("json")
20760 if res != nil && res.StatusCode == http.StatusNotModified {
20761 if res.Body != nil {
20762 res.Body.Close()
20763 }
20764 return nil, gensupport.WrapError(&googleapi.Error{
20765 Code: res.StatusCode,
20766 Header: res.Header,
20767 })
20768 }
20769 if err != nil {
20770 return nil, err
20771 }
20772 defer googleapi.CloseBody(res)
20773 if err := googleapi.CheckResponse(res); err != nil {
20774 return nil, gensupport.WrapError(err)
20775 }
20776 ret := &GoogleProtobufEmpty{
20777 ServerResponse: googleapi.ServerResponse{
20778 Header: res.Header,
20779 HTTPStatusCode: res.StatusCode,
20780 },
20781 }
20782 target := &ret
20783 if err := gensupport.DecodeResponse(target, res); err != nil {
20784 return nil, err
20785 }
20786 return ret, nil
20787 }
20788
20789 type ProjectsLocationsDeidentifyTemplatesGetCall struct {
20790 s *Service
20791 name string
20792 urlParams_ gensupport.URLParams
20793 ifNoneMatch_ string
20794 ctx_ context.Context
20795 header_ http.Header
20796 }
20797
20798
20799
20800
20801
20802
20803
20804
20805 func (r *ProjectsLocationsDeidentifyTemplatesService) Get(name string) *ProjectsLocationsDeidentifyTemplatesGetCall {
20806 c := &ProjectsLocationsDeidentifyTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20807 c.name = name
20808 return c
20809 }
20810
20811
20812
20813
20814 func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesGetCall {
20815 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20816 return c
20817 }
20818
20819
20820
20821
20822 func (c *ProjectsLocationsDeidentifyTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeidentifyTemplatesGetCall {
20823 c.ifNoneMatch_ = entityTag
20824 return c
20825 }
20826
20827
20828 func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesGetCall {
20829 c.ctx_ = ctx
20830 return c
20831 }
20832
20833
20834
20835 func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Header() http.Header {
20836 if c.header_ == nil {
20837 c.header_ = make(http.Header)
20838 }
20839 return c.header_
20840 }
20841
20842 func (c *ProjectsLocationsDeidentifyTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
20843 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20844 if c.ifNoneMatch_ != "" {
20845 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20846 }
20847 var body io.Reader = nil
20848 c.urlParams_.Set("alt", alt)
20849 c.urlParams_.Set("prettyPrint", "false")
20850 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
20851 urls += "?" + c.urlParams_.Encode()
20852 req, err := http.NewRequest("GET", urls, body)
20853 if err != nil {
20854 return nil, err
20855 }
20856 req.Header = reqHeaders
20857 googleapi.Expand(req.URL, map[string]string{
20858 "name": c.name,
20859 })
20860 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20861 }
20862
20863
20864
20865
20866
20867
20868
20869 func (c *ProjectsLocationsDeidentifyTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
20870 gensupport.SetOptions(c.urlParams_, opts...)
20871 res, err := c.doRequest("json")
20872 if res != nil && res.StatusCode == http.StatusNotModified {
20873 if res.Body != nil {
20874 res.Body.Close()
20875 }
20876 return nil, gensupport.WrapError(&googleapi.Error{
20877 Code: res.StatusCode,
20878 Header: res.Header,
20879 })
20880 }
20881 if err != nil {
20882 return nil, err
20883 }
20884 defer googleapi.CloseBody(res)
20885 if err := googleapi.CheckResponse(res); err != nil {
20886 return nil, gensupport.WrapError(err)
20887 }
20888 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
20889 ServerResponse: googleapi.ServerResponse{
20890 Header: res.Header,
20891 HTTPStatusCode: res.StatusCode,
20892 },
20893 }
20894 target := &ret
20895 if err := gensupport.DecodeResponse(target, res); err != nil {
20896 return nil, err
20897 }
20898 return ret, nil
20899 }
20900
20901 type ProjectsLocationsDeidentifyTemplatesListCall struct {
20902 s *Service
20903 parentid string
20904 urlParams_ gensupport.URLParams
20905 ifNoneMatch_ string
20906 ctx_ context.Context
20907 header_ http.Header
20908 }
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928 func (r *ProjectsLocationsDeidentifyTemplatesService) List(parentid string) *ProjectsLocationsDeidentifyTemplatesListCall {
20929 c := &ProjectsLocationsDeidentifyTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20930 c.parentid = parentid
20931 return c
20932 }
20933
20934
20935
20936 func (c *ProjectsLocationsDeidentifyTemplatesListCall) LocationId(locationId string) *ProjectsLocationsDeidentifyTemplatesListCall {
20937 c.urlParams_.Set("locationId", locationId)
20938 return c
20939 }
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949 func (c *ProjectsLocationsDeidentifyTemplatesListCall) OrderBy(orderBy string) *ProjectsLocationsDeidentifyTemplatesListCall {
20950 c.urlParams_.Set("orderBy", orderBy)
20951 return c
20952 }
20953
20954
20955
20956
20957 func (c *ProjectsLocationsDeidentifyTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsDeidentifyTemplatesListCall {
20958 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20959 return c
20960 }
20961
20962
20963
20964 func (c *ProjectsLocationsDeidentifyTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsDeidentifyTemplatesListCall {
20965 c.urlParams_.Set("pageToken", pageToken)
20966 return c
20967 }
20968
20969
20970
20971
20972 func (c *ProjectsLocationsDeidentifyTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesListCall {
20973 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20974 return c
20975 }
20976
20977
20978
20979
20980 func (c *ProjectsLocationsDeidentifyTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeidentifyTemplatesListCall {
20981 c.ifNoneMatch_ = entityTag
20982 return c
20983 }
20984
20985
20986 func (c *ProjectsLocationsDeidentifyTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesListCall {
20987 c.ctx_ = ctx
20988 return c
20989 }
20990
20991
20992
20993 func (c *ProjectsLocationsDeidentifyTemplatesListCall) Header() http.Header {
20994 if c.header_ == nil {
20995 c.header_ = make(http.Header)
20996 }
20997 return c.header_
20998 }
20999
21000 func (c *ProjectsLocationsDeidentifyTemplatesListCall) doRequest(alt string) (*http.Response, error) {
21001 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21002 if c.ifNoneMatch_ != "" {
21003 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21004 }
21005 var body io.Reader = nil
21006 c.urlParams_.Set("alt", alt)
21007 c.urlParams_.Set("prettyPrint", "false")
21008 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/deidentifyTemplates")
21009 urls += "?" + c.urlParams_.Encode()
21010 req, err := http.NewRequest("GET", urls, body)
21011 if err != nil {
21012 return nil, err
21013 }
21014 req.Header = reqHeaders
21015 googleapi.Expand(req.URL, map[string]string{
21016 "parent": c.parentid,
21017 })
21018 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21019 }
21020
21021
21022
21023
21024
21025
21026
21027 func (c *ProjectsLocationsDeidentifyTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse, error) {
21028 gensupport.SetOptions(c.urlParams_, opts...)
21029 res, err := c.doRequest("json")
21030 if res != nil && res.StatusCode == http.StatusNotModified {
21031 if res.Body != nil {
21032 res.Body.Close()
21033 }
21034 return nil, gensupport.WrapError(&googleapi.Error{
21035 Code: res.StatusCode,
21036 Header: res.Header,
21037 })
21038 }
21039 if err != nil {
21040 return nil, err
21041 }
21042 defer googleapi.CloseBody(res)
21043 if err := googleapi.CheckResponse(res); err != nil {
21044 return nil, gensupport.WrapError(err)
21045 }
21046 ret := &GooglePrivacyDlpV2ListDeidentifyTemplatesResponse{
21047 ServerResponse: googleapi.ServerResponse{
21048 Header: res.Header,
21049 HTTPStatusCode: res.StatusCode,
21050 },
21051 }
21052 target := &ret
21053 if err := gensupport.DecodeResponse(target, res); err != nil {
21054 return nil, err
21055 }
21056 return ret, nil
21057 }
21058
21059
21060
21061
21062 func (c *ProjectsLocationsDeidentifyTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDeidentifyTemplatesResponse) error) error {
21063 c.ctx_ = ctx
21064 defer c.PageToken(c.urlParams_.Get("pageToken"))
21065 for {
21066 x, err := c.Do()
21067 if err != nil {
21068 return err
21069 }
21070 if err := f(x); err != nil {
21071 return err
21072 }
21073 if x.NextPageToken == "" {
21074 return nil
21075 }
21076 c.PageToken(x.NextPageToken)
21077 }
21078 }
21079
21080 type ProjectsLocationsDeidentifyTemplatesPatchCall struct {
21081 s *Service
21082 name string
21083 googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest
21084 urlParams_ gensupport.URLParams
21085 ctx_ context.Context
21086 header_ http.Header
21087 }
21088
21089
21090
21091
21092
21093
21094
21095
21096 func (r *ProjectsLocationsDeidentifyTemplatesService) Patch(name string, googleprivacydlpv2updatedeidentifytemplaterequest *GooglePrivacyDlpV2UpdateDeidentifyTemplateRequest) *ProjectsLocationsDeidentifyTemplatesPatchCall {
21097 c := &ProjectsLocationsDeidentifyTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21098 c.name = name
21099 c.googleprivacydlpv2updatedeidentifytemplaterequest = googleprivacydlpv2updatedeidentifytemplaterequest
21100 return c
21101 }
21102
21103
21104
21105
21106 func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeidentifyTemplatesPatchCall {
21107 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21108 return c
21109 }
21110
21111
21112 func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsDeidentifyTemplatesPatchCall {
21113 c.ctx_ = ctx
21114 return c
21115 }
21116
21117
21118
21119 func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Header() http.Header {
21120 if c.header_ == nil {
21121 c.header_ = make(http.Header)
21122 }
21123 return c.header_
21124 }
21125
21126 func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
21127 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21128 var body io.Reader = nil
21129 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatedeidentifytemplaterequest)
21130 if err != nil {
21131 return nil, err
21132 }
21133 c.urlParams_.Set("alt", alt)
21134 c.urlParams_.Set("prettyPrint", "false")
21135 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
21136 urls += "?" + c.urlParams_.Encode()
21137 req, err := http.NewRequest("PATCH", urls, body)
21138 if err != nil {
21139 return nil, err
21140 }
21141 req.Header = reqHeaders
21142 googleapi.Expand(req.URL, map[string]string{
21143 "name": c.name,
21144 })
21145 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21146 }
21147
21148
21149
21150
21151
21152
21153
21154 func (c *ProjectsLocationsDeidentifyTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DeidentifyTemplate, error) {
21155 gensupport.SetOptions(c.urlParams_, opts...)
21156 res, err := c.doRequest("json")
21157 if res != nil && res.StatusCode == http.StatusNotModified {
21158 if res.Body != nil {
21159 res.Body.Close()
21160 }
21161 return nil, gensupport.WrapError(&googleapi.Error{
21162 Code: res.StatusCode,
21163 Header: res.Header,
21164 })
21165 }
21166 if err != nil {
21167 return nil, err
21168 }
21169 defer googleapi.CloseBody(res)
21170 if err := googleapi.CheckResponse(res); err != nil {
21171 return nil, gensupport.WrapError(err)
21172 }
21173 ret := &GooglePrivacyDlpV2DeidentifyTemplate{
21174 ServerResponse: googleapi.ServerResponse{
21175 Header: res.Header,
21176 HTTPStatusCode: res.StatusCode,
21177 },
21178 }
21179 target := &ret
21180 if err := gensupport.DecodeResponse(target, res); err != nil {
21181 return nil, err
21182 }
21183 return ret, nil
21184 }
21185
21186 type ProjectsLocationsDiscoveryConfigsCreateCall struct {
21187 s *Service
21188 parentid string
21189 googleprivacydlpv2creatediscoveryconfigrequest *GooglePrivacyDlpV2CreateDiscoveryConfigRequest
21190 urlParams_ gensupport.URLParams
21191 ctx_ context.Context
21192 header_ http.Header
21193 }
21194
21195
21196
21197
21198
21199
21200
21201
21202 func (r *ProjectsLocationsDiscoveryConfigsService) Create(parentid string, googleprivacydlpv2creatediscoveryconfigrequest *GooglePrivacyDlpV2CreateDiscoveryConfigRequest) *ProjectsLocationsDiscoveryConfigsCreateCall {
21203 c := &ProjectsLocationsDiscoveryConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21204 c.parentid = parentid
21205 c.googleprivacydlpv2creatediscoveryconfigrequest = googleprivacydlpv2creatediscoveryconfigrequest
21206 return c
21207 }
21208
21209
21210
21211
21212 func (c *ProjectsLocationsDiscoveryConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsCreateCall {
21213 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21214 return c
21215 }
21216
21217
21218 func (c *ProjectsLocationsDiscoveryConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsCreateCall {
21219 c.ctx_ = ctx
21220 return c
21221 }
21222
21223
21224
21225 func (c *ProjectsLocationsDiscoveryConfigsCreateCall) Header() http.Header {
21226 if c.header_ == nil {
21227 c.header_ = make(http.Header)
21228 }
21229 return c.header_
21230 }
21231
21232 func (c *ProjectsLocationsDiscoveryConfigsCreateCall) doRequest(alt string) (*http.Response, error) {
21233 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21234 var body io.Reader = nil
21235 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2creatediscoveryconfigrequest)
21236 if err != nil {
21237 return nil, err
21238 }
21239 c.urlParams_.Set("alt", alt)
21240 c.urlParams_.Set("prettyPrint", "false")
21241 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/discoveryConfigs")
21242 urls += "?" + c.urlParams_.Encode()
21243 req, err := http.NewRequest("POST", urls, body)
21244 if err != nil {
21245 return nil, err
21246 }
21247 req.Header = reqHeaders
21248 googleapi.Expand(req.URL, map[string]string{
21249 "parent": c.parentid,
21250 })
21251 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21252 }
21253
21254
21255
21256
21257
21258
21259
21260 func (c *ProjectsLocationsDiscoveryConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
21261 gensupport.SetOptions(c.urlParams_, opts...)
21262 res, err := c.doRequest("json")
21263 if res != nil && res.StatusCode == http.StatusNotModified {
21264 if res.Body != nil {
21265 res.Body.Close()
21266 }
21267 return nil, gensupport.WrapError(&googleapi.Error{
21268 Code: res.StatusCode,
21269 Header: res.Header,
21270 })
21271 }
21272 if err != nil {
21273 return nil, err
21274 }
21275 defer googleapi.CloseBody(res)
21276 if err := googleapi.CheckResponse(res); err != nil {
21277 return nil, gensupport.WrapError(err)
21278 }
21279 ret := &GooglePrivacyDlpV2DiscoveryConfig{
21280 ServerResponse: googleapi.ServerResponse{
21281 Header: res.Header,
21282 HTTPStatusCode: res.StatusCode,
21283 },
21284 }
21285 target := &ret
21286 if err := gensupport.DecodeResponse(target, res); err != nil {
21287 return nil, err
21288 }
21289 return ret, nil
21290 }
21291
21292 type ProjectsLocationsDiscoveryConfigsDeleteCall struct {
21293 s *Service
21294 name string
21295 urlParams_ gensupport.URLParams
21296 ctx_ context.Context
21297 header_ http.Header
21298 }
21299
21300
21301
21302
21303
21304 func (r *ProjectsLocationsDiscoveryConfigsService) Delete(name string) *ProjectsLocationsDiscoveryConfigsDeleteCall {
21305 c := &ProjectsLocationsDiscoveryConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21306 c.name = name
21307 return c
21308 }
21309
21310
21311
21312
21313 func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsDeleteCall {
21314 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21315 return c
21316 }
21317
21318
21319 func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsDeleteCall {
21320 c.ctx_ = ctx
21321 return c
21322 }
21323
21324
21325
21326 func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) Header() http.Header {
21327 if c.header_ == nil {
21328 c.header_ = make(http.Header)
21329 }
21330 return c.header_
21331 }
21332
21333 func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) doRequest(alt string) (*http.Response, error) {
21334 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21335 var body io.Reader = nil
21336 c.urlParams_.Set("alt", alt)
21337 c.urlParams_.Set("prettyPrint", "false")
21338 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
21339 urls += "?" + c.urlParams_.Encode()
21340 req, err := http.NewRequest("DELETE", urls, body)
21341 if err != nil {
21342 return nil, err
21343 }
21344 req.Header = reqHeaders
21345 googleapi.Expand(req.URL, map[string]string{
21346 "name": c.name,
21347 })
21348 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21349 }
21350
21351
21352
21353
21354
21355
21356
21357 func (c *ProjectsLocationsDiscoveryConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21358 gensupport.SetOptions(c.urlParams_, opts...)
21359 res, err := c.doRequest("json")
21360 if res != nil && res.StatusCode == http.StatusNotModified {
21361 if res.Body != nil {
21362 res.Body.Close()
21363 }
21364 return nil, gensupport.WrapError(&googleapi.Error{
21365 Code: res.StatusCode,
21366 Header: res.Header,
21367 })
21368 }
21369 if err != nil {
21370 return nil, err
21371 }
21372 defer googleapi.CloseBody(res)
21373 if err := googleapi.CheckResponse(res); err != nil {
21374 return nil, gensupport.WrapError(err)
21375 }
21376 ret := &GoogleProtobufEmpty{
21377 ServerResponse: googleapi.ServerResponse{
21378 Header: res.Header,
21379 HTTPStatusCode: res.StatusCode,
21380 },
21381 }
21382 target := &ret
21383 if err := gensupport.DecodeResponse(target, res); err != nil {
21384 return nil, err
21385 }
21386 return ret, nil
21387 }
21388
21389 type ProjectsLocationsDiscoveryConfigsGetCall struct {
21390 s *Service
21391 name string
21392 urlParams_ gensupport.URLParams
21393 ifNoneMatch_ string
21394 ctx_ context.Context
21395 header_ http.Header
21396 }
21397
21398
21399
21400
21401
21402 func (r *ProjectsLocationsDiscoveryConfigsService) Get(name string) *ProjectsLocationsDiscoveryConfigsGetCall {
21403 c := &ProjectsLocationsDiscoveryConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21404 c.name = name
21405 return c
21406 }
21407
21408
21409
21410
21411 func (c *ProjectsLocationsDiscoveryConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsGetCall {
21412 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21413 return c
21414 }
21415
21416
21417
21418
21419 func (c *ProjectsLocationsDiscoveryConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryConfigsGetCall {
21420 c.ifNoneMatch_ = entityTag
21421 return c
21422 }
21423
21424
21425 func (c *ProjectsLocationsDiscoveryConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsGetCall {
21426 c.ctx_ = ctx
21427 return c
21428 }
21429
21430
21431
21432 func (c *ProjectsLocationsDiscoveryConfigsGetCall) Header() http.Header {
21433 if c.header_ == nil {
21434 c.header_ = make(http.Header)
21435 }
21436 return c.header_
21437 }
21438
21439 func (c *ProjectsLocationsDiscoveryConfigsGetCall) doRequest(alt string) (*http.Response, error) {
21440 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21441 if c.ifNoneMatch_ != "" {
21442 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21443 }
21444 var body io.Reader = nil
21445 c.urlParams_.Set("alt", alt)
21446 c.urlParams_.Set("prettyPrint", "false")
21447 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
21448 urls += "?" + c.urlParams_.Encode()
21449 req, err := http.NewRequest("GET", urls, body)
21450 if err != nil {
21451 return nil, err
21452 }
21453 req.Header = reqHeaders
21454 googleapi.Expand(req.URL, map[string]string{
21455 "name": c.name,
21456 })
21457 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21458 }
21459
21460
21461
21462
21463
21464
21465
21466 func (c *ProjectsLocationsDiscoveryConfigsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
21467 gensupport.SetOptions(c.urlParams_, opts...)
21468 res, err := c.doRequest("json")
21469 if res != nil && res.StatusCode == http.StatusNotModified {
21470 if res.Body != nil {
21471 res.Body.Close()
21472 }
21473 return nil, gensupport.WrapError(&googleapi.Error{
21474 Code: res.StatusCode,
21475 Header: res.Header,
21476 })
21477 }
21478 if err != nil {
21479 return nil, err
21480 }
21481 defer googleapi.CloseBody(res)
21482 if err := googleapi.CheckResponse(res); err != nil {
21483 return nil, gensupport.WrapError(err)
21484 }
21485 ret := &GooglePrivacyDlpV2DiscoveryConfig{
21486 ServerResponse: googleapi.ServerResponse{
21487 Header: res.Header,
21488 HTTPStatusCode: res.StatusCode,
21489 },
21490 }
21491 target := &ret
21492 if err := gensupport.DecodeResponse(target, res); err != nil {
21493 return nil, err
21494 }
21495 return ret, nil
21496 }
21497
21498 type ProjectsLocationsDiscoveryConfigsListCall struct {
21499 s *Service
21500 parentid string
21501 urlParams_ gensupport.URLParams
21502 ifNoneMatch_ string
21503 ctx_ context.Context
21504 header_ http.Header
21505 }
21506
21507
21508
21509
21510
21511
21512
21513
21514 func (r *ProjectsLocationsDiscoveryConfigsService) List(parentid string) *ProjectsLocationsDiscoveryConfigsListCall {
21515 c := &ProjectsLocationsDiscoveryConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21516 c.parentid = parentid
21517 return c
21518 }
21519
21520
21521
21522
21523
21524
21525
21526
21527 func (c *ProjectsLocationsDiscoveryConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsDiscoveryConfigsListCall {
21528 c.urlParams_.Set("orderBy", orderBy)
21529 return c
21530 }
21531
21532
21533
21534 func (c *ProjectsLocationsDiscoveryConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsDiscoveryConfigsListCall {
21535 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21536 return c
21537 }
21538
21539
21540
21541
21542 func (c *ProjectsLocationsDiscoveryConfigsListCall) PageToken(pageToken string) *ProjectsLocationsDiscoveryConfigsListCall {
21543 c.urlParams_.Set("pageToken", pageToken)
21544 return c
21545 }
21546
21547
21548
21549
21550 func (c *ProjectsLocationsDiscoveryConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsListCall {
21551 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21552 return c
21553 }
21554
21555
21556
21557
21558 func (c *ProjectsLocationsDiscoveryConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDiscoveryConfigsListCall {
21559 c.ifNoneMatch_ = entityTag
21560 return c
21561 }
21562
21563
21564 func (c *ProjectsLocationsDiscoveryConfigsListCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsListCall {
21565 c.ctx_ = ctx
21566 return c
21567 }
21568
21569
21570
21571 func (c *ProjectsLocationsDiscoveryConfigsListCall) Header() http.Header {
21572 if c.header_ == nil {
21573 c.header_ = make(http.Header)
21574 }
21575 return c.header_
21576 }
21577
21578 func (c *ProjectsLocationsDiscoveryConfigsListCall) doRequest(alt string) (*http.Response, error) {
21579 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21580 if c.ifNoneMatch_ != "" {
21581 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21582 }
21583 var body io.Reader = nil
21584 c.urlParams_.Set("alt", alt)
21585 c.urlParams_.Set("prettyPrint", "false")
21586 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/discoveryConfigs")
21587 urls += "?" + c.urlParams_.Encode()
21588 req, err := http.NewRequest("GET", urls, body)
21589 if err != nil {
21590 return nil, err
21591 }
21592 req.Header = reqHeaders
21593 googleapi.Expand(req.URL, map[string]string{
21594 "parent": c.parentid,
21595 })
21596 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21597 }
21598
21599
21600
21601
21602
21603
21604
21605 func (c *ProjectsLocationsDiscoveryConfigsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDiscoveryConfigsResponse, error) {
21606 gensupport.SetOptions(c.urlParams_, opts...)
21607 res, err := c.doRequest("json")
21608 if res != nil && res.StatusCode == http.StatusNotModified {
21609 if res.Body != nil {
21610 res.Body.Close()
21611 }
21612 return nil, gensupport.WrapError(&googleapi.Error{
21613 Code: res.StatusCode,
21614 Header: res.Header,
21615 })
21616 }
21617 if err != nil {
21618 return nil, err
21619 }
21620 defer googleapi.CloseBody(res)
21621 if err := googleapi.CheckResponse(res); err != nil {
21622 return nil, gensupport.WrapError(err)
21623 }
21624 ret := &GooglePrivacyDlpV2ListDiscoveryConfigsResponse{
21625 ServerResponse: googleapi.ServerResponse{
21626 Header: res.Header,
21627 HTTPStatusCode: res.StatusCode,
21628 },
21629 }
21630 target := &ret
21631 if err := gensupport.DecodeResponse(target, res); err != nil {
21632 return nil, err
21633 }
21634 return ret, nil
21635 }
21636
21637
21638
21639
21640 func (c *ProjectsLocationsDiscoveryConfigsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDiscoveryConfigsResponse) error) error {
21641 c.ctx_ = ctx
21642 defer c.PageToken(c.urlParams_.Get("pageToken"))
21643 for {
21644 x, err := c.Do()
21645 if err != nil {
21646 return err
21647 }
21648 if err := f(x); err != nil {
21649 return err
21650 }
21651 if x.NextPageToken == "" {
21652 return nil
21653 }
21654 c.PageToken(x.NextPageToken)
21655 }
21656 }
21657
21658 type ProjectsLocationsDiscoveryConfigsPatchCall struct {
21659 s *Service
21660 name string
21661 googleprivacydlpv2updatediscoveryconfigrequest *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest
21662 urlParams_ gensupport.URLParams
21663 ctx_ context.Context
21664 header_ http.Header
21665 }
21666
21667
21668
21669
21670
21671 func (r *ProjectsLocationsDiscoveryConfigsService) Patch(name string, googleprivacydlpv2updatediscoveryconfigrequest *GooglePrivacyDlpV2UpdateDiscoveryConfigRequest) *ProjectsLocationsDiscoveryConfigsPatchCall {
21672 c := &ProjectsLocationsDiscoveryConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21673 c.name = name
21674 c.googleprivacydlpv2updatediscoveryconfigrequest = googleprivacydlpv2updatediscoveryconfigrequest
21675 return c
21676 }
21677
21678
21679
21680
21681 func (c *ProjectsLocationsDiscoveryConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDiscoveryConfigsPatchCall {
21682 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21683 return c
21684 }
21685
21686
21687 func (c *ProjectsLocationsDiscoveryConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsDiscoveryConfigsPatchCall {
21688 c.ctx_ = ctx
21689 return c
21690 }
21691
21692
21693
21694 func (c *ProjectsLocationsDiscoveryConfigsPatchCall) Header() http.Header {
21695 if c.header_ == nil {
21696 c.header_ = make(http.Header)
21697 }
21698 return c.header_
21699 }
21700
21701 func (c *ProjectsLocationsDiscoveryConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
21702 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21703 var body io.Reader = nil
21704 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatediscoveryconfigrequest)
21705 if err != nil {
21706 return nil, err
21707 }
21708 c.urlParams_.Set("alt", alt)
21709 c.urlParams_.Set("prettyPrint", "false")
21710 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
21711 urls += "?" + c.urlParams_.Encode()
21712 req, err := http.NewRequest("PATCH", urls, body)
21713 if err != nil {
21714 return nil, err
21715 }
21716 req.Header = reqHeaders
21717 googleapi.Expand(req.URL, map[string]string{
21718 "name": c.name,
21719 })
21720 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21721 }
21722
21723
21724
21725
21726
21727
21728
21729 func (c *ProjectsLocationsDiscoveryConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DiscoveryConfig, error) {
21730 gensupport.SetOptions(c.urlParams_, opts...)
21731 res, err := c.doRequest("json")
21732 if res != nil && res.StatusCode == http.StatusNotModified {
21733 if res.Body != nil {
21734 res.Body.Close()
21735 }
21736 return nil, gensupport.WrapError(&googleapi.Error{
21737 Code: res.StatusCode,
21738 Header: res.Header,
21739 })
21740 }
21741 if err != nil {
21742 return nil, err
21743 }
21744 defer googleapi.CloseBody(res)
21745 if err := googleapi.CheckResponse(res); err != nil {
21746 return nil, gensupport.WrapError(err)
21747 }
21748 ret := &GooglePrivacyDlpV2DiscoveryConfig{
21749 ServerResponse: googleapi.ServerResponse{
21750 Header: res.Header,
21751 HTTPStatusCode: res.StatusCode,
21752 },
21753 }
21754 target := &ret
21755 if err := gensupport.DecodeResponse(target, res); err != nil {
21756 return nil, err
21757 }
21758 return ret, nil
21759 }
21760
21761 type ProjectsLocationsDlpJobsCancelCall struct {
21762 s *Service
21763 name string
21764 googleprivacydlpv2canceldlpjobrequest *GooglePrivacyDlpV2CancelDlpJobRequest
21765 urlParams_ gensupport.URLParams
21766 ctx_ context.Context
21767 header_ http.Header
21768 }
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779 func (r *ProjectsLocationsDlpJobsService) Cancel(name string, googleprivacydlpv2canceldlpjobrequest *GooglePrivacyDlpV2CancelDlpJobRequest) *ProjectsLocationsDlpJobsCancelCall {
21780 c := &ProjectsLocationsDlpJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21781 c.name = name
21782 c.googleprivacydlpv2canceldlpjobrequest = googleprivacydlpv2canceldlpjobrequest
21783 return c
21784 }
21785
21786
21787
21788
21789 func (c *ProjectsLocationsDlpJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsCancelCall {
21790 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21791 return c
21792 }
21793
21794
21795 func (c *ProjectsLocationsDlpJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsCancelCall {
21796 c.ctx_ = ctx
21797 return c
21798 }
21799
21800
21801
21802 func (c *ProjectsLocationsDlpJobsCancelCall) Header() http.Header {
21803 if c.header_ == nil {
21804 c.header_ = make(http.Header)
21805 }
21806 return c.header_
21807 }
21808
21809 func (c *ProjectsLocationsDlpJobsCancelCall) doRequest(alt string) (*http.Response, error) {
21810 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21811 var body io.Reader = nil
21812 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2canceldlpjobrequest)
21813 if err != nil {
21814 return nil, err
21815 }
21816 c.urlParams_.Set("alt", alt)
21817 c.urlParams_.Set("prettyPrint", "false")
21818 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
21819 urls += "?" + c.urlParams_.Encode()
21820 req, err := http.NewRequest("POST", urls, body)
21821 if err != nil {
21822 return nil, err
21823 }
21824 req.Header = reqHeaders
21825 googleapi.Expand(req.URL, map[string]string{
21826 "name": c.name,
21827 })
21828 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21829 }
21830
21831
21832
21833
21834
21835
21836
21837 func (c *ProjectsLocationsDlpJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21838 gensupport.SetOptions(c.urlParams_, opts...)
21839 res, err := c.doRequest("json")
21840 if res != nil && res.StatusCode == http.StatusNotModified {
21841 if res.Body != nil {
21842 res.Body.Close()
21843 }
21844 return nil, gensupport.WrapError(&googleapi.Error{
21845 Code: res.StatusCode,
21846 Header: res.Header,
21847 })
21848 }
21849 if err != nil {
21850 return nil, err
21851 }
21852 defer googleapi.CloseBody(res)
21853 if err := googleapi.CheckResponse(res); err != nil {
21854 return nil, gensupport.WrapError(err)
21855 }
21856 ret := &GoogleProtobufEmpty{
21857 ServerResponse: googleapi.ServerResponse{
21858 Header: res.Header,
21859 HTTPStatusCode: res.StatusCode,
21860 },
21861 }
21862 target := &ret
21863 if err := gensupport.DecodeResponse(target, res); err != nil {
21864 return nil, err
21865 }
21866 return ret, nil
21867 }
21868
21869 type ProjectsLocationsDlpJobsCreateCall struct {
21870 s *Service
21871 parentid string
21872 googleprivacydlpv2createdlpjobrequest *GooglePrivacyDlpV2CreateDlpJobRequest
21873 urlParams_ gensupport.URLParams
21874 ctx_ context.Context
21875 header_ http.Header
21876 }
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896 func (r *ProjectsLocationsDlpJobsService) Create(parentid string, googleprivacydlpv2createdlpjobrequest *GooglePrivacyDlpV2CreateDlpJobRequest) *ProjectsLocationsDlpJobsCreateCall {
21897 c := &ProjectsLocationsDlpJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21898 c.parentid = parentid
21899 c.googleprivacydlpv2createdlpjobrequest = googleprivacydlpv2createdlpjobrequest
21900 return c
21901 }
21902
21903
21904
21905
21906 func (c *ProjectsLocationsDlpJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsCreateCall {
21907 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21908 return c
21909 }
21910
21911
21912 func (c *ProjectsLocationsDlpJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsCreateCall {
21913 c.ctx_ = ctx
21914 return c
21915 }
21916
21917
21918
21919 func (c *ProjectsLocationsDlpJobsCreateCall) Header() http.Header {
21920 if c.header_ == nil {
21921 c.header_ = make(http.Header)
21922 }
21923 return c.header_
21924 }
21925
21926 func (c *ProjectsLocationsDlpJobsCreateCall) doRequest(alt string) (*http.Response, error) {
21927 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21928 var body io.Reader = nil
21929 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createdlpjobrequest)
21930 if err != nil {
21931 return nil, err
21932 }
21933 c.urlParams_.Set("alt", alt)
21934 c.urlParams_.Set("prettyPrint", "false")
21935 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
21936 urls += "?" + c.urlParams_.Encode()
21937 req, err := http.NewRequest("POST", urls, body)
21938 if err != nil {
21939 return nil, err
21940 }
21941 req.Header = reqHeaders
21942 googleapi.Expand(req.URL, map[string]string{
21943 "parent": c.parentid,
21944 })
21945 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21946 }
21947
21948
21949
21950
21951
21952
21953
21954 func (c *ProjectsLocationsDlpJobsCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
21955 gensupport.SetOptions(c.urlParams_, opts...)
21956 res, err := c.doRequest("json")
21957 if res != nil && res.StatusCode == http.StatusNotModified {
21958 if res.Body != nil {
21959 res.Body.Close()
21960 }
21961 return nil, gensupport.WrapError(&googleapi.Error{
21962 Code: res.StatusCode,
21963 Header: res.Header,
21964 })
21965 }
21966 if err != nil {
21967 return nil, err
21968 }
21969 defer googleapi.CloseBody(res)
21970 if err := googleapi.CheckResponse(res); err != nil {
21971 return nil, gensupport.WrapError(err)
21972 }
21973 ret := &GooglePrivacyDlpV2DlpJob{
21974 ServerResponse: googleapi.ServerResponse{
21975 Header: res.Header,
21976 HTTPStatusCode: res.StatusCode,
21977 },
21978 }
21979 target := &ret
21980 if err := gensupport.DecodeResponse(target, res); err != nil {
21981 return nil, err
21982 }
21983 return ret, nil
21984 }
21985
21986 type ProjectsLocationsDlpJobsDeleteCall struct {
21987 s *Service
21988 name string
21989 urlParams_ gensupport.URLParams
21990 ctx_ context.Context
21991 header_ http.Header
21992 }
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003 func (r *ProjectsLocationsDlpJobsService) Delete(name string) *ProjectsLocationsDlpJobsDeleteCall {
22004 c := &ProjectsLocationsDlpJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22005 c.name = name
22006 return c
22007 }
22008
22009
22010
22011
22012 func (c *ProjectsLocationsDlpJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsDeleteCall {
22013 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22014 return c
22015 }
22016
22017
22018 func (c *ProjectsLocationsDlpJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsDeleteCall {
22019 c.ctx_ = ctx
22020 return c
22021 }
22022
22023
22024
22025 func (c *ProjectsLocationsDlpJobsDeleteCall) Header() http.Header {
22026 if c.header_ == nil {
22027 c.header_ = make(http.Header)
22028 }
22029 return c.header_
22030 }
22031
22032 func (c *ProjectsLocationsDlpJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
22033 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22034 var body io.Reader = nil
22035 c.urlParams_.Set("alt", alt)
22036 c.urlParams_.Set("prettyPrint", "false")
22037 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
22038 urls += "?" + c.urlParams_.Encode()
22039 req, err := http.NewRequest("DELETE", urls, body)
22040 if err != nil {
22041 return nil, err
22042 }
22043 req.Header = reqHeaders
22044 googleapi.Expand(req.URL, map[string]string{
22045 "name": c.name,
22046 })
22047 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22048 }
22049
22050
22051
22052
22053
22054
22055
22056 func (c *ProjectsLocationsDlpJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22057 gensupport.SetOptions(c.urlParams_, opts...)
22058 res, err := c.doRequest("json")
22059 if res != nil && res.StatusCode == http.StatusNotModified {
22060 if res.Body != nil {
22061 res.Body.Close()
22062 }
22063 return nil, gensupport.WrapError(&googleapi.Error{
22064 Code: res.StatusCode,
22065 Header: res.Header,
22066 })
22067 }
22068 if err != nil {
22069 return nil, err
22070 }
22071 defer googleapi.CloseBody(res)
22072 if err := googleapi.CheckResponse(res); err != nil {
22073 return nil, gensupport.WrapError(err)
22074 }
22075 ret := &GoogleProtobufEmpty{
22076 ServerResponse: googleapi.ServerResponse{
22077 Header: res.Header,
22078 HTTPStatusCode: res.StatusCode,
22079 },
22080 }
22081 target := &ret
22082 if err := gensupport.DecodeResponse(target, res); err != nil {
22083 return nil, err
22084 }
22085 return ret, nil
22086 }
22087
22088 type ProjectsLocationsDlpJobsFinishCall struct {
22089 s *Service
22090 name string
22091 googleprivacydlpv2finishdlpjobrequest *GooglePrivacyDlpV2FinishDlpJobRequest
22092 urlParams_ gensupport.URLParams
22093 ctx_ context.Context
22094 header_ http.Header
22095 }
22096
22097
22098
22099
22100
22101 func (r *ProjectsLocationsDlpJobsService) Finish(name string, googleprivacydlpv2finishdlpjobrequest *GooglePrivacyDlpV2FinishDlpJobRequest) *ProjectsLocationsDlpJobsFinishCall {
22102 c := &ProjectsLocationsDlpJobsFinishCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22103 c.name = name
22104 c.googleprivacydlpv2finishdlpjobrequest = googleprivacydlpv2finishdlpjobrequest
22105 return c
22106 }
22107
22108
22109
22110
22111 func (c *ProjectsLocationsDlpJobsFinishCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsFinishCall {
22112 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22113 return c
22114 }
22115
22116
22117 func (c *ProjectsLocationsDlpJobsFinishCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsFinishCall {
22118 c.ctx_ = ctx
22119 return c
22120 }
22121
22122
22123
22124 func (c *ProjectsLocationsDlpJobsFinishCall) Header() http.Header {
22125 if c.header_ == nil {
22126 c.header_ = make(http.Header)
22127 }
22128 return c.header_
22129 }
22130
22131 func (c *ProjectsLocationsDlpJobsFinishCall) doRequest(alt string) (*http.Response, error) {
22132 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22133 var body io.Reader = nil
22134 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2finishdlpjobrequest)
22135 if err != nil {
22136 return nil, err
22137 }
22138 c.urlParams_.Set("alt", alt)
22139 c.urlParams_.Set("prettyPrint", "false")
22140 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:finish")
22141 urls += "?" + c.urlParams_.Encode()
22142 req, err := http.NewRequest("POST", urls, body)
22143 if err != nil {
22144 return nil, err
22145 }
22146 req.Header = reqHeaders
22147 googleapi.Expand(req.URL, map[string]string{
22148 "name": c.name,
22149 })
22150 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22151 }
22152
22153
22154
22155
22156
22157
22158
22159 func (c *ProjectsLocationsDlpJobsFinishCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22160 gensupport.SetOptions(c.urlParams_, opts...)
22161 res, err := c.doRequest("json")
22162 if res != nil && res.StatusCode == http.StatusNotModified {
22163 if res.Body != nil {
22164 res.Body.Close()
22165 }
22166 return nil, gensupport.WrapError(&googleapi.Error{
22167 Code: res.StatusCode,
22168 Header: res.Header,
22169 })
22170 }
22171 if err != nil {
22172 return nil, err
22173 }
22174 defer googleapi.CloseBody(res)
22175 if err := googleapi.CheckResponse(res); err != nil {
22176 return nil, gensupport.WrapError(err)
22177 }
22178 ret := &GoogleProtobufEmpty{
22179 ServerResponse: googleapi.ServerResponse{
22180 Header: res.Header,
22181 HTTPStatusCode: res.StatusCode,
22182 },
22183 }
22184 target := &ret
22185 if err := gensupport.DecodeResponse(target, res); err != nil {
22186 return nil, err
22187 }
22188 return ret, nil
22189 }
22190
22191 type ProjectsLocationsDlpJobsGetCall struct {
22192 s *Service
22193 name string
22194 urlParams_ gensupport.URLParams
22195 ifNoneMatch_ string
22196 ctx_ context.Context
22197 header_ http.Header
22198 }
22199
22200
22201
22202
22203
22204
22205
22206
22207 func (r *ProjectsLocationsDlpJobsService) Get(name string) *ProjectsLocationsDlpJobsGetCall {
22208 c := &ProjectsLocationsDlpJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22209 c.name = name
22210 return c
22211 }
22212
22213
22214
22215
22216 func (c *ProjectsLocationsDlpJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsGetCall {
22217 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22218 return c
22219 }
22220
22221
22222
22223
22224 func (c *ProjectsLocationsDlpJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDlpJobsGetCall {
22225 c.ifNoneMatch_ = entityTag
22226 return c
22227 }
22228
22229
22230 func (c *ProjectsLocationsDlpJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsGetCall {
22231 c.ctx_ = ctx
22232 return c
22233 }
22234
22235
22236
22237 func (c *ProjectsLocationsDlpJobsGetCall) Header() http.Header {
22238 if c.header_ == nil {
22239 c.header_ = make(http.Header)
22240 }
22241 return c.header_
22242 }
22243
22244 func (c *ProjectsLocationsDlpJobsGetCall) doRequest(alt string) (*http.Response, error) {
22245 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22246 if c.ifNoneMatch_ != "" {
22247 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22248 }
22249 var body io.Reader = nil
22250 c.urlParams_.Set("alt", alt)
22251 c.urlParams_.Set("prettyPrint", "false")
22252 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
22253 urls += "?" + c.urlParams_.Encode()
22254 req, err := http.NewRequest("GET", urls, body)
22255 if err != nil {
22256 return nil, err
22257 }
22258 req.Header = reqHeaders
22259 googleapi.Expand(req.URL, map[string]string{
22260 "name": c.name,
22261 })
22262 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22263 }
22264
22265
22266
22267
22268
22269
22270
22271 func (c *ProjectsLocationsDlpJobsGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
22272 gensupport.SetOptions(c.urlParams_, opts...)
22273 res, err := c.doRequest("json")
22274 if res != nil && res.StatusCode == http.StatusNotModified {
22275 if res.Body != nil {
22276 res.Body.Close()
22277 }
22278 return nil, gensupport.WrapError(&googleapi.Error{
22279 Code: res.StatusCode,
22280 Header: res.Header,
22281 })
22282 }
22283 if err != nil {
22284 return nil, err
22285 }
22286 defer googleapi.CloseBody(res)
22287 if err := googleapi.CheckResponse(res); err != nil {
22288 return nil, gensupport.WrapError(err)
22289 }
22290 ret := &GooglePrivacyDlpV2DlpJob{
22291 ServerResponse: googleapi.ServerResponse{
22292 Header: res.Header,
22293 HTTPStatusCode: res.StatusCode,
22294 },
22295 }
22296 target := &ret
22297 if err := gensupport.DecodeResponse(target, res); err != nil {
22298 return nil, err
22299 }
22300 return ret, nil
22301 }
22302
22303 type ProjectsLocationsDlpJobsHybridInspectCall struct {
22304 s *Service
22305 name string
22306 googleprivacydlpv2hybridinspectdlpjobrequest *GooglePrivacyDlpV2HybridInspectDlpJobRequest
22307 urlParams_ gensupport.URLParams
22308 ctx_ context.Context
22309 header_ http.Header
22310 }
22311
22312
22313
22314
22315
22316
22317 func (r *ProjectsLocationsDlpJobsService) HybridInspect(name string, googleprivacydlpv2hybridinspectdlpjobrequest *GooglePrivacyDlpV2HybridInspectDlpJobRequest) *ProjectsLocationsDlpJobsHybridInspectCall {
22318 c := &ProjectsLocationsDlpJobsHybridInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22319 c.name = name
22320 c.googleprivacydlpv2hybridinspectdlpjobrequest = googleprivacydlpv2hybridinspectdlpjobrequest
22321 return c
22322 }
22323
22324
22325
22326
22327 func (c *ProjectsLocationsDlpJobsHybridInspectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsHybridInspectCall {
22328 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22329 return c
22330 }
22331
22332
22333 func (c *ProjectsLocationsDlpJobsHybridInspectCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsHybridInspectCall {
22334 c.ctx_ = ctx
22335 return c
22336 }
22337
22338
22339
22340 func (c *ProjectsLocationsDlpJobsHybridInspectCall) Header() http.Header {
22341 if c.header_ == nil {
22342 c.header_ = make(http.Header)
22343 }
22344 return c.header_
22345 }
22346
22347 func (c *ProjectsLocationsDlpJobsHybridInspectCall) doRequest(alt string) (*http.Response, error) {
22348 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22349 var body io.Reader = nil
22350 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2hybridinspectdlpjobrequest)
22351 if err != nil {
22352 return nil, err
22353 }
22354 c.urlParams_.Set("alt", alt)
22355 c.urlParams_.Set("prettyPrint", "false")
22356 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:hybridInspect")
22357 urls += "?" + c.urlParams_.Encode()
22358 req, err := http.NewRequest("POST", urls, body)
22359 if err != nil {
22360 return nil, err
22361 }
22362 req.Header = reqHeaders
22363 googleapi.Expand(req.URL, map[string]string{
22364 "name": c.name,
22365 })
22366 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22367 }
22368
22369
22370
22371
22372
22373
22374
22375 func (c *ProjectsLocationsDlpJobsHybridInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2HybridInspectResponse, error) {
22376 gensupport.SetOptions(c.urlParams_, opts...)
22377 res, err := c.doRequest("json")
22378 if res != nil && res.StatusCode == http.StatusNotModified {
22379 if res.Body != nil {
22380 res.Body.Close()
22381 }
22382 return nil, gensupport.WrapError(&googleapi.Error{
22383 Code: res.StatusCode,
22384 Header: res.Header,
22385 })
22386 }
22387 if err != nil {
22388 return nil, err
22389 }
22390 defer googleapi.CloseBody(res)
22391 if err := googleapi.CheckResponse(res); err != nil {
22392 return nil, gensupport.WrapError(err)
22393 }
22394 ret := &GooglePrivacyDlpV2HybridInspectResponse{
22395 ServerResponse: googleapi.ServerResponse{
22396 Header: res.Header,
22397 HTTPStatusCode: res.StatusCode,
22398 },
22399 }
22400 target := &ret
22401 if err := gensupport.DecodeResponse(target, res); err != nil {
22402 return nil, err
22403 }
22404 return ret, nil
22405 }
22406
22407 type ProjectsLocationsDlpJobsListCall struct {
22408 s *Service
22409 parentid string
22410 urlParams_ gensupport.URLParams
22411 ifNoneMatch_ string
22412 ctx_ context.Context
22413 header_ http.Header
22414 }
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432 func (r *ProjectsLocationsDlpJobsService) List(parentid string) *ProjectsLocationsDlpJobsListCall {
22433 c := &ProjectsLocationsDlpJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22434 c.parentid = parentid
22435 return c
22436 }
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455 func (c *ProjectsLocationsDlpJobsListCall) Filter(filter string) *ProjectsLocationsDlpJobsListCall {
22456 c.urlParams_.Set("filter", filter)
22457 return c
22458 }
22459
22460
22461
22462 func (c *ProjectsLocationsDlpJobsListCall) LocationId(locationId string) *ProjectsLocationsDlpJobsListCall {
22463 c.urlParams_.Set("locationId", locationId)
22464 return c
22465 }
22466
22467
22468
22469
22470
22471
22472
22473
22474 func (c *ProjectsLocationsDlpJobsListCall) OrderBy(orderBy string) *ProjectsLocationsDlpJobsListCall {
22475 c.urlParams_.Set("orderBy", orderBy)
22476 return c
22477 }
22478
22479
22480
22481 func (c *ProjectsLocationsDlpJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDlpJobsListCall {
22482 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22483 return c
22484 }
22485
22486
22487
22488 func (c *ProjectsLocationsDlpJobsListCall) PageToken(pageToken string) *ProjectsLocationsDlpJobsListCall {
22489 c.urlParams_.Set("pageToken", pageToken)
22490 return c
22491 }
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501 func (c *ProjectsLocationsDlpJobsListCall) Type(type_ string) *ProjectsLocationsDlpJobsListCall {
22502 c.urlParams_.Set("type", type_)
22503 return c
22504 }
22505
22506
22507
22508
22509 func (c *ProjectsLocationsDlpJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDlpJobsListCall {
22510 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22511 return c
22512 }
22513
22514
22515
22516
22517 func (c *ProjectsLocationsDlpJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDlpJobsListCall {
22518 c.ifNoneMatch_ = entityTag
22519 return c
22520 }
22521
22522
22523 func (c *ProjectsLocationsDlpJobsListCall) Context(ctx context.Context) *ProjectsLocationsDlpJobsListCall {
22524 c.ctx_ = ctx
22525 return c
22526 }
22527
22528
22529
22530 func (c *ProjectsLocationsDlpJobsListCall) Header() http.Header {
22531 if c.header_ == nil {
22532 c.header_ = make(http.Header)
22533 }
22534 return c.header_
22535 }
22536
22537 func (c *ProjectsLocationsDlpJobsListCall) doRequest(alt string) (*http.Response, error) {
22538 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22539 if c.ifNoneMatch_ != "" {
22540 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22541 }
22542 var body io.Reader = nil
22543 c.urlParams_.Set("alt", alt)
22544 c.urlParams_.Set("prettyPrint", "false")
22545 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/dlpJobs")
22546 urls += "?" + c.urlParams_.Encode()
22547 req, err := http.NewRequest("GET", urls, body)
22548 if err != nil {
22549 return nil, err
22550 }
22551 req.Header = reqHeaders
22552 googleapi.Expand(req.URL, map[string]string{
22553 "parent": c.parentid,
22554 })
22555 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22556 }
22557
22558
22559
22560
22561
22562
22563
22564 func (c *ProjectsLocationsDlpJobsListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListDlpJobsResponse, error) {
22565 gensupport.SetOptions(c.urlParams_, opts...)
22566 res, err := c.doRequest("json")
22567 if res != nil && res.StatusCode == http.StatusNotModified {
22568 if res.Body != nil {
22569 res.Body.Close()
22570 }
22571 return nil, gensupport.WrapError(&googleapi.Error{
22572 Code: res.StatusCode,
22573 Header: res.Header,
22574 })
22575 }
22576 if err != nil {
22577 return nil, err
22578 }
22579 defer googleapi.CloseBody(res)
22580 if err := googleapi.CheckResponse(res); err != nil {
22581 return nil, gensupport.WrapError(err)
22582 }
22583 ret := &GooglePrivacyDlpV2ListDlpJobsResponse{
22584 ServerResponse: googleapi.ServerResponse{
22585 Header: res.Header,
22586 HTTPStatusCode: res.StatusCode,
22587 },
22588 }
22589 target := &ret
22590 if err := gensupport.DecodeResponse(target, res); err != nil {
22591 return nil, err
22592 }
22593 return ret, nil
22594 }
22595
22596
22597
22598
22599 func (c *ProjectsLocationsDlpJobsListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListDlpJobsResponse) error) error {
22600 c.ctx_ = ctx
22601 defer c.PageToken(c.urlParams_.Get("pageToken"))
22602 for {
22603 x, err := c.Do()
22604 if err != nil {
22605 return err
22606 }
22607 if err := f(x); err != nil {
22608 return err
22609 }
22610 if x.NextPageToken == "" {
22611 return nil
22612 }
22613 c.PageToken(x.NextPageToken)
22614 }
22615 }
22616
22617 type ProjectsLocationsImageRedactCall struct {
22618 s *Service
22619 parentid string
22620 googleprivacydlpv2redactimagerequest *GooglePrivacyDlpV2RedactImageRequest
22621 urlParams_ gensupport.URLParams
22622 ctx_ context.Context
22623 header_ http.Header
22624 }
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644 func (r *ProjectsLocationsImageService) Redact(parentid string, googleprivacydlpv2redactimagerequest *GooglePrivacyDlpV2RedactImageRequest) *ProjectsLocationsImageRedactCall {
22645 c := &ProjectsLocationsImageRedactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22646 c.parentid = parentid
22647 c.googleprivacydlpv2redactimagerequest = googleprivacydlpv2redactimagerequest
22648 return c
22649 }
22650
22651
22652
22653
22654 func (c *ProjectsLocationsImageRedactCall) Fields(s ...googleapi.Field) *ProjectsLocationsImageRedactCall {
22655 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22656 return c
22657 }
22658
22659
22660 func (c *ProjectsLocationsImageRedactCall) Context(ctx context.Context) *ProjectsLocationsImageRedactCall {
22661 c.ctx_ = ctx
22662 return c
22663 }
22664
22665
22666
22667 func (c *ProjectsLocationsImageRedactCall) Header() http.Header {
22668 if c.header_ == nil {
22669 c.header_ = make(http.Header)
22670 }
22671 return c.header_
22672 }
22673
22674 func (c *ProjectsLocationsImageRedactCall) doRequest(alt string) (*http.Response, error) {
22675 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22676 var body io.Reader = nil
22677 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2redactimagerequest)
22678 if err != nil {
22679 return nil, err
22680 }
22681 c.urlParams_.Set("alt", alt)
22682 c.urlParams_.Set("prettyPrint", "false")
22683 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/image:redact")
22684 urls += "?" + c.urlParams_.Encode()
22685 req, err := http.NewRequest("POST", urls, body)
22686 if err != nil {
22687 return nil, err
22688 }
22689 req.Header = reqHeaders
22690 googleapi.Expand(req.URL, map[string]string{
22691 "parent": c.parentid,
22692 })
22693 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22694 }
22695
22696
22697
22698
22699
22700
22701
22702 func (c *ProjectsLocationsImageRedactCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2RedactImageResponse, error) {
22703 gensupport.SetOptions(c.urlParams_, opts...)
22704 res, err := c.doRequest("json")
22705 if res != nil && res.StatusCode == http.StatusNotModified {
22706 if res.Body != nil {
22707 res.Body.Close()
22708 }
22709 return nil, gensupport.WrapError(&googleapi.Error{
22710 Code: res.StatusCode,
22711 Header: res.Header,
22712 })
22713 }
22714 if err != nil {
22715 return nil, err
22716 }
22717 defer googleapi.CloseBody(res)
22718 if err := googleapi.CheckResponse(res); err != nil {
22719 return nil, gensupport.WrapError(err)
22720 }
22721 ret := &GooglePrivacyDlpV2RedactImageResponse{
22722 ServerResponse: googleapi.ServerResponse{
22723 Header: res.Header,
22724 HTTPStatusCode: res.StatusCode,
22725 },
22726 }
22727 target := &ret
22728 if err := gensupport.DecodeResponse(target, res); err != nil {
22729 return nil, err
22730 }
22731 return ret, nil
22732 }
22733
22734 type ProjectsLocationsInspectTemplatesCreateCall struct {
22735 s *Service
22736 parentid string
22737 googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest
22738 urlParams_ gensupport.URLParams
22739 ctx_ context.Context
22740 header_ http.Header
22741 }
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762 func (r *ProjectsLocationsInspectTemplatesService) Create(parentid string, googleprivacydlpv2createinspecttemplaterequest *GooglePrivacyDlpV2CreateInspectTemplateRequest) *ProjectsLocationsInspectTemplatesCreateCall {
22763 c := &ProjectsLocationsInspectTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22764 c.parentid = parentid
22765 c.googleprivacydlpv2createinspecttemplaterequest = googleprivacydlpv2createinspecttemplaterequest
22766 return c
22767 }
22768
22769
22770
22771
22772 func (c *ProjectsLocationsInspectTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesCreateCall {
22773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22774 return c
22775 }
22776
22777
22778 func (c *ProjectsLocationsInspectTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesCreateCall {
22779 c.ctx_ = ctx
22780 return c
22781 }
22782
22783
22784
22785 func (c *ProjectsLocationsInspectTemplatesCreateCall) Header() http.Header {
22786 if c.header_ == nil {
22787 c.header_ = make(http.Header)
22788 }
22789 return c.header_
22790 }
22791
22792 func (c *ProjectsLocationsInspectTemplatesCreateCall) doRequest(alt string) (*http.Response, error) {
22793 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22794 var body io.Reader = nil
22795 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createinspecttemplaterequest)
22796 if err != nil {
22797 return nil, err
22798 }
22799 c.urlParams_.Set("alt", alt)
22800 c.urlParams_.Set("prettyPrint", "false")
22801 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
22802 urls += "?" + c.urlParams_.Encode()
22803 req, err := http.NewRequest("POST", urls, body)
22804 if err != nil {
22805 return nil, err
22806 }
22807 req.Header = reqHeaders
22808 googleapi.Expand(req.URL, map[string]string{
22809 "parent": c.parentid,
22810 })
22811 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22812 }
22813
22814
22815
22816
22817
22818
22819
22820 func (c *ProjectsLocationsInspectTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
22821 gensupport.SetOptions(c.urlParams_, opts...)
22822 res, err := c.doRequest("json")
22823 if res != nil && res.StatusCode == http.StatusNotModified {
22824 if res.Body != nil {
22825 res.Body.Close()
22826 }
22827 return nil, gensupport.WrapError(&googleapi.Error{
22828 Code: res.StatusCode,
22829 Header: res.Header,
22830 })
22831 }
22832 if err != nil {
22833 return nil, err
22834 }
22835 defer googleapi.CloseBody(res)
22836 if err := googleapi.CheckResponse(res); err != nil {
22837 return nil, gensupport.WrapError(err)
22838 }
22839 ret := &GooglePrivacyDlpV2InspectTemplate{
22840 ServerResponse: googleapi.ServerResponse{
22841 Header: res.Header,
22842 HTTPStatusCode: res.StatusCode,
22843 },
22844 }
22845 target := &ret
22846 if err := gensupport.DecodeResponse(target, res); err != nil {
22847 return nil, err
22848 }
22849 return ret, nil
22850 }
22851
22852 type ProjectsLocationsInspectTemplatesDeleteCall struct {
22853 s *Service
22854 name string
22855 urlParams_ gensupport.URLParams
22856 ctx_ context.Context
22857 header_ http.Header
22858 }
22859
22860
22861
22862
22863
22864
22865
22866
22867 func (r *ProjectsLocationsInspectTemplatesService) Delete(name string) *ProjectsLocationsInspectTemplatesDeleteCall {
22868 c := &ProjectsLocationsInspectTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22869 c.name = name
22870 return c
22871 }
22872
22873
22874
22875
22876 func (c *ProjectsLocationsInspectTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesDeleteCall {
22877 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22878 return c
22879 }
22880
22881
22882 func (c *ProjectsLocationsInspectTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesDeleteCall {
22883 c.ctx_ = ctx
22884 return c
22885 }
22886
22887
22888
22889 func (c *ProjectsLocationsInspectTemplatesDeleteCall) Header() http.Header {
22890 if c.header_ == nil {
22891 c.header_ = make(http.Header)
22892 }
22893 return c.header_
22894 }
22895
22896 func (c *ProjectsLocationsInspectTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) {
22897 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22898 var body io.Reader = nil
22899 c.urlParams_.Set("alt", alt)
22900 c.urlParams_.Set("prettyPrint", "false")
22901 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
22902 urls += "?" + c.urlParams_.Encode()
22903 req, err := http.NewRequest("DELETE", urls, body)
22904 if err != nil {
22905 return nil, err
22906 }
22907 req.Header = reqHeaders
22908 googleapi.Expand(req.URL, map[string]string{
22909 "name": c.name,
22910 })
22911 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22912 }
22913
22914
22915
22916
22917
22918
22919
22920 func (c *ProjectsLocationsInspectTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22921 gensupport.SetOptions(c.urlParams_, opts...)
22922 res, err := c.doRequest("json")
22923 if res != nil && res.StatusCode == http.StatusNotModified {
22924 if res.Body != nil {
22925 res.Body.Close()
22926 }
22927 return nil, gensupport.WrapError(&googleapi.Error{
22928 Code: res.StatusCode,
22929 Header: res.Header,
22930 })
22931 }
22932 if err != nil {
22933 return nil, err
22934 }
22935 defer googleapi.CloseBody(res)
22936 if err := googleapi.CheckResponse(res); err != nil {
22937 return nil, gensupport.WrapError(err)
22938 }
22939 ret := &GoogleProtobufEmpty{
22940 ServerResponse: googleapi.ServerResponse{
22941 Header: res.Header,
22942 HTTPStatusCode: res.StatusCode,
22943 },
22944 }
22945 target := &ret
22946 if err := gensupport.DecodeResponse(target, res); err != nil {
22947 return nil, err
22948 }
22949 return ret, nil
22950 }
22951
22952 type ProjectsLocationsInspectTemplatesGetCall struct {
22953 s *Service
22954 name string
22955 urlParams_ gensupport.URLParams
22956 ifNoneMatch_ string
22957 ctx_ context.Context
22958 header_ http.Header
22959 }
22960
22961
22962
22963
22964
22965
22966
22967
22968 func (r *ProjectsLocationsInspectTemplatesService) Get(name string) *ProjectsLocationsInspectTemplatesGetCall {
22969 c := &ProjectsLocationsInspectTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22970 c.name = name
22971 return c
22972 }
22973
22974
22975
22976
22977 func (c *ProjectsLocationsInspectTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesGetCall {
22978 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22979 return c
22980 }
22981
22982
22983
22984
22985 func (c *ProjectsLocationsInspectTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsInspectTemplatesGetCall {
22986 c.ifNoneMatch_ = entityTag
22987 return c
22988 }
22989
22990
22991 func (c *ProjectsLocationsInspectTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesGetCall {
22992 c.ctx_ = ctx
22993 return c
22994 }
22995
22996
22997
22998 func (c *ProjectsLocationsInspectTemplatesGetCall) Header() http.Header {
22999 if c.header_ == nil {
23000 c.header_ = make(http.Header)
23001 }
23002 return c.header_
23003 }
23004
23005 func (c *ProjectsLocationsInspectTemplatesGetCall) doRequest(alt string) (*http.Response, error) {
23006 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23007 if c.ifNoneMatch_ != "" {
23008 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23009 }
23010 var body io.Reader = nil
23011 c.urlParams_.Set("alt", alt)
23012 c.urlParams_.Set("prettyPrint", "false")
23013 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
23014 urls += "?" + c.urlParams_.Encode()
23015 req, err := http.NewRequest("GET", urls, body)
23016 if err != nil {
23017 return nil, err
23018 }
23019 req.Header = reqHeaders
23020 googleapi.Expand(req.URL, map[string]string{
23021 "name": c.name,
23022 })
23023 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23024 }
23025
23026
23027
23028
23029
23030
23031
23032 func (c *ProjectsLocationsInspectTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
23033 gensupport.SetOptions(c.urlParams_, opts...)
23034 res, err := c.doRequest("json")
23035 if res != nil && res.StatusCode == http.StatusNotModified {
23036 if res.Body != nil {
23037 res.Body.Close()
23038 }
23039 return nil, gensupport.WrapError(&googleapi.Error{
23040 Code: res.StatusCode,
23041 Header: res.Header,
23042 })
23043 }
23044 if err != nil {
23045 return nil, err
23046 }
23047 defer googleapi.CloseBody(res)
23048 if err := googleapi.CheckResponse(res); err != nil {
23049 return nil, gensupport.WrapError(err)
23050 }
23051 ret := &GooglePrivacyDlpV2InspectTemplate{
23052 ServerResponse: googleapi.ServerResponse{
23053 Header: res.Header,
23054 HTTPStatusCode: res.StatusCode,
23055 },
23056 }
23057 target := &ret
23058 if err := gensupport.DecodeResponse(target, res); err != nil {
23059 return nil, err
23060 }
23061 return ret, nil
23062 }
23063
23064 type ProjectsLocationsInspectTemplatesListCall struct {
23065 s *Service
23066 parentid string
23067 urlParams_ gensupport.URLParams
23068 ifNoneMatch_ string
23069 ctx_ context.Context
23070 header_ http.Header
23071 }
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091 func (r *ProjectsLocationsInspectTemplatesService) List(parentid string) *ProjectsLocationsInspectTemplatesListCall {
23092 c := &ProjectsLocationsInspectTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23093 c.parentid = parentid
23094 return c
23095 }
23096
23097
23098
23099 func (c *ProjectsLocationsInspectTemplatesListCall) LocationId(locationId string) *ProjectsLocationsInspectTemplatesListCall {
23100 c.urlParams_.Set("locationId", locationId)
23101 return c
23102 }
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112 func (c *ProjectsLocationsInspectTemplatesListCall) OrderBy(orderBy string) *ProjectsLocationsInspectTemplatesListCall {
23113 c.urlParams_.Set("orderBy", orderBy)
23114 return c
23115 }
23116
23117
23118
23119
23120 func (c *ProjectsLocationsInspectTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsInspectTemplatesListCall {
23121 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23122 return c
23123 }
23124
23125
23126
23127 func (c *ProjectsLocationsInspectTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsInspectTemplatesListCall {
23128 c.urlParams_.Set("pageToken", pageToken)
23129 return c
23130 }
23131
23132
23133
23134
23135 func (c *ProjectsLocationsInspectTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesListCall {
23136 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23137 return c
23138 }
23139
23140
23141
23142
23143 func (c *ProjectsLocationsInspectTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsInspectTemplatesListCall {
23144 c.ifNoneMatch_ = entityTag
23145 return c
23146 }
23147
23148
23149 func (c *ProjectsLocationsInspectTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesListCall {
23150 c.ctx_ = ctx
23151 return c
23152 }
23153
23154
23155
23156 func (c *ProjectsLocationsInspectTemplatesListCall) Header() http.Header {
23157 if c.header_ == nil {
23158 c.header_ = make(http.Header)
23159 }
23160 return c.header_
23161 }
23162
23163 func (c *ProjectsLocationsInspectTemplatesListCall) doRequest(alt string) (*http.Response, error) {
23164 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23165 if c.ifNoneMatch_ != "" {
23166 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23167 }
23168 var body io.Reader = nil
23169 c.urlParams_.Set("alt", alt)
23170 c.urlParams_.Set("prettyPrint", "false")
23171 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/inspectTemplates")
23172 urls += "?" + c.urlParams_.Encode()
23173 req, err := http.NewRequest("GET", urls, body)
23174 if err != nil {
23175 return nil, err
23176 }
23177 req.Header = reqHeaders
23178 googleapi.Expand(req.URL, map[string]string{
23179 "parent": c.parentid,
23180 })
23181 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23182 }
23183
23184
23185
23186
23187
23188
23189
23190 func (c *ProjectsLocationsInspectTemplatesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListInspectTemplatesResponse, error) {
23191 gensupport.SetOptions(c.urlParams_, opts...)
23192 res, err := c.doRequest("json")
23193 if res != nil && res.StatusCode == http.StatusNotModified {
23194 if res.Body != nil {
23195 res.Body.Close()
23196 }
23197 return nil, gensupport.WrapError(&googleapi.Error{
23198 Code: res.StatusCode,
23199 Header: res.Header,
23200 })
23201 }
23202 if err != nil {
23203 return nil, err
23204 }
23205 defer googleapi.CloseBody(res)
23206 if err := googleapi.CheckResponse(res); err != nil {
23207 return nil, gensupport.WrapError(err)
23208 }
23209 ret := &GooglePrivacyDlpV2ListInspectTemplatesResponse{
23210 ServerResponse: googleapi.ServerResponse{
23211 Header: res.Header,
23212 HTTPStatusCode: res.StatusCode,
23213 },
23214 }
23215 target := &ret
23216 if err := gensupport.DecodeResponse(target, res); err != nil {
23217 return nil, err
23218 }
23219 return ret, nil
23220 }
23221
23222
23223
23224
23225 func (c *ProjectsLocationsInspectTemplatesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListInspectTemplatesResponse) error) error {
23226 c.ctx_ = ctx
23227 defer c.PageToken(c.urlParams_.Get("pageToken"))
23228 for {
23229 x, err := c.Do()
23230 if err != nil {
23231 return err
23232 }
23233 if err := f(x); err != nil {
23234 return err
23235 }
23236 if x.NextPageToken == "" {
23237 return nil
23238 }
23239 c.PageToken(x.NextPageToken)
23240 }
23241 }
23242
23243 type ProjectsLocationsInspectTemplatesPatchCall struct {
23244 s *Service
23245 name string
23246 googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest
23247 urlParams_ gensupport.URLParams
23248 ctx_ context.Context
23249 header_ http.Header
23250 }
23251
23252
23253
23254
23255
23256
23257
23258
23259 func (r *ProjectsLocationsInspectTemplatesService) Patch(name string, googleprivacydlpv2updateinspecttemplaterequest *GooglePrivacyDlpV2UpdateInspectTemplateRequest) *ProjectsLocationsInspectTemplatesPatchCall {
23260 c := &ProjectsLocationsInspectTemplatesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23261 c.name = name
23262 c.googleprivacydlpv2updateinspecttemplaterequest = googleprivacydlpv2updateinspecttemplaterequest
23263 return c
23264 }
23265
23266
23267
23268
23269 func (c *ProjectsLocationsInspectTemplatesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsInspectTemplatesPatchCall {
23270 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23271 return c
23272 }
23273
23274
23275 func (c *ProjectsLocationsInspectTemplatesPatchCall) Context(ctx context.Context) *ProjectsLocationsInspectTemplatesPatchCall {
23276 c.ctx_ = ctx
23277 return c
23278 }
23279
23280
23281
23282 func (c *ProjectsLocationsInspectTemplatesPatchCall) Header() http.Header {
23283 if c.header_ == nil {
23284 c.header_ = make(http.Header)
23285 }
23286 return c.header_
23287 }
23288
23289 func (c *ProjectsLocationsInspectTemplatesPatchCall) doRequest(alt string) (*http.Response, error) {
23290 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23291 var body io.Reader = nil
23292 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updateinspecttemplaterequest)
23293 if err != nil {
23294 return nil, err
23295 }
23296 c.urlParams_.Set("alt", alt)
23297 c.urlParams_.Set("prettyPrint", "false")
23298 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
23299 urls += "?" + c.urlParams_.Encode()
23300 req, err := http.NewRequest("PATCH", urls, body)
23301 if err != nil {
23302 return nil, err
23303 }
23304 req.Header = reqHeaders
23305 googleapi.Expand(req.URL, map[string]string{
23306 "name": c.name,
23307 })
23308 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23309 }
23310
23311
23312
23313
23314
23315
23316
23317 func (c *ProjectsLocationsInspectTemplatesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2InspectTemplate, error) {
23318 gensupport.SetOptions(c.urlParams_, opts...)
23319 res, err := c.doRequest("json")
23320 if res != nil && res.StatusCode == http.StatusNotModified {
23321 if res.Body != nil {
23322 res.Body.Close()
23323 }
23324 return nil, gensupport.WrapError(&googleapi.Error{
23325 Code: res.StatusCode,
23326 Header: res.Header,
23327 })
23328 }
23329 if err != nil {
23330 return nil, err
23331 }
23332 defer googleapi.CloseBody(res)
23333 if err := googleapi.CheckResponse(res); err != nil {
23334 return nil, gensupport.WrapError(err)
23335 }
23336 ret := &GooglePrivacyDlpV2InspectTemplate{
23337 ServerResponse: googleapi.ServerResponse{
23338 Header: res.Header,
23339 HTTPStatusCode: res.StatusCode,
23340 },
23341 }
23342 target := &ret
23343 if err := gensupport.DecodeResponse(target, res); err != nil {
23344 return nil, err
23345 }
23346 return ret, nil
23347 }
23348
23349 type ProjectsLocationsJobTriggersActivateCall struct {
23350 s *Service
23351 name string
23352 googleprivacydlpv2activatejobtriggerrequest *GooglePrivacyDlpV2ActivateJobTriggerRequest
23353 urlParams_ gensupport.URLParams
23354 ctx_ context.Context
23355 header_ http.Header
23356 }
23357
23358
23359
23360
23361
23362
23363 func (r *ProjectsLocationsJobTriggersService) Activate(name string, googleprivacydlpv2activatejobtriggerrequest *GooglePrivacyDlpV2ActivateJobTriggerRequest) *ProjectsLocationsJobTriggersActivateCall {
23364 c := &ProjectsLocationsJobTriggersActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23365 c.name = name
23366 c.googleprivacydlpv2activatejobtriggerrequest = googleprivacydlpv2activatejobtriggerrequest
23367 return c
23368 }
23369
23370
23371
23372
23373 func (c *ProjectsLocationsJobTriggersActivateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersActivateCall {
23374 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23375 return c
23376 }
23377
23378
23379 func (c *ProjectsLocationsJobTriggersActivateCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersActivateCall {
23380 c.ctx_ = ctx
23381 return c
23382 }
23383
23384
23385
23386 func (c *ProjectsLocationsJobTriggersActivateCall) Header() http.Header {
23387 if c.header_ == nil {
23388 c.header_ = make(http.Header)
23389 }
23390 return c.header_
23391 }
23392
23393 func (c *ProjectsLocationsJobTriggersActivateCall) doRequest(alt string) (*http.Response, error) {
23394 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23395 var body io.Reader = nil
23396 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2activatejobtriggerrequest)
23397 if err != nil {
23398 return nil, err
23399 }
23400 c.urlParams_.Set("alt", alt)
23401 c.urlParams_.Set("prettyPrint", "false")
23402 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:activate")
23403 urls += "?" + c.urlParams_.Encode()
23404 req, err := http.NewRequest("POST", urls, body)
23405 if err != nil {
23406 return nil, err
23407 }
23408 req.Header = reqHeaders
23409 googleapi.Expand(req.URL, map[string]string{
23410 "name": c.name,
23411 })
23412 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23413 }
23414
23415
23416
23417
23418
23419
23420
23421 func (c *ProjectsLocationsJobTriggersActivateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2DlpJob, error) {
23422 gensupport.SetOptions(c.urlParams_, opts...)
23423 res, err := c.doRequest("json")
23424 if res != nil && res.StatusCode == http.StatusNotModified {
23425 if res.Body != nil {
23426 res.Body.Close()
23427 }
23428 return nil, gensupport.WrapError(&googleapi.Error{
23429 Code: res.StatusCode,
23430 Header: res.Header,
23431 })
23432 }
23433 if err != nil {
23434 return nil, err
23435 }
23436 defer googleapi.CloseBody(res)
23437 if err := googleapi.CheckResponse(res); err != nil {
23438 return nil, gensupport.WrapError(err)
23439 }
23440 ret := &GooglePrivacyDlpV2DlpJob{
23441 ServerResponse: googleapi.ServerResponse{
23442 Header: res.Header,
23443 HTTPStatusCode: res.StatusCode,
23444 },
23445 }
23446 target := &ret
23447 if err := gensupport.DecodeResponse(target, res); err != nil {
23448 return nil, err
23449 }
23450 return ret, nil
23451 }
23452
23453 type ProjectsLocationsJobTriggersCreateCall struct {
23454 s *Service
23455 parentid string
23456 googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest
23457 urlParams_ gensupport.URLParams
23458 ctx_ context.Context
23459 header_ http.Header
23460 }
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477 func (r *ProjectsLocationsJobTriggersService) Create(parentid string, googleprivacydlpv2createjobtriggerrequest *GooglePrivacyDlpV2CreateJobTriggerRequest) *ProjectsLocationsJobTriggersCreateCall {
23478 c := &ProjectsLocationsJobTriggersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23479 c.parentid = parentid
23480 c.googleprivacydlpv2createjobtriggerrequest = googleprivacydlpv2createjobtriggerrequest
23481 return c
23482 }
23483
23484
23485
23486
23487 func (c *ProjectsLocationsJobTriggersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersCreateCall {
23488 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23489 return c
23490 }
23491
23492
23493 func (c *ProjectsLocationsJobTriggersCreateCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersCreateCall {
23494 c.ctx_ = ctx
23495 return c
23496 }
23497
23498
23499
23500 func (c *ProjectsLocationsJobTriggersCreateCall) Header() http.Header {
23501 if c.header_ == nil {
23502 c.header_ = make(http.Header)
23503 }
23504 return c.header_
23505 }
23506
23507 func (c *ProjectsLocationsJobTriggersCreateCall) doRequest(alt string) (*http.Response, error) {
23508 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23509 var body io.Reader = nil
23510 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createjobtriggerrequest)
23511 if err != nil {
23512 return nil, err
23513 }
23514 c.urlParams_.Set("alt", alt)
23515 c.urlParams_.Set("prettyPrint", "false")
23516 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
23517 urls += "?" + c.urlParams_.Encode()
23518 req, err := http.NewRequest("POST", urls, body)
23519 if err != nil {
23520 return nil, err
23521 }
23522 req.Header = reqHeaders
23523 googleapi.Expand(req.URL, map[string]string{
23524 "parent": c.parentid,
23525 })
23526 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23527 }
23528
23529
23530
23531
23532
23533
23534
23535 func (c *ProjectsLocationsJobTriggersCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
23536 gensupport.SetOptions(c.urlParams_, opts...)
23537 res, err := c.doRequest("json")
23538 if res != nil && res.StatusCode == http.StatusNotModified {
23539 if res.Body != nil {
23540 res.Body.Close()
23541 }
23542 return nil, gensupport.WrapError(&googleapi.Error{
23543 Code: res.StatusCode,
23544 Header: res.Header,
23545 })
23546 }
23547 if err != nil {
23548 return nil, err
23549 }
23550 defer googleapi.CloseBody(res)
23551 if err := googleapi.CheckResponse(res); err != nil {
23552 return nil, gensupport.WrapError(err)
23553 }
23554 ret := &GooglePrivacyDlpV2JobTrigger{
23555 ServerResponse: googleapi.ServerResponse{
23556 Header: res.Header,
23557 HTTPStatusCode: res.StatusCode,
23558 },
23559 }
23560 target := &ret
23561 if err := gensupport.DecodeResponse(target, res); err != nil {
23562 return nil, err
23563 }
23564 return ret, nil
23565 }
23566
23567 type ProjectsLocationsJobTriggersDeleteCall struct {
23568 s *Service
23569 name string
23570 urlParams_ gensupport.URLParams
23571 ctx_ context.Context
23572 header_ http.Header
23573 }
23574
23575
23576
23577
23578
23579
23580
23581 func (r *ProjectsLocationsJobTriggersService) Delete(name string) *ProjectsLocationsJobTriggersDeleteCall {
23582 c := &ProjectsLocationsJobTriggersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23583 c.name = name
23584 return c
23585 }
23586
23587
23588
23589
23590 func (c *ProjectsLocationsJobTriggersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersDeleteCall {
23591 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23592 return c
23593 }
23594
23595
23596 func (c *ProjectsLocationsJobTriggersDeleteCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersDeleteCall {
23597 c.ctx_ = ctx
23598 return c
23599 }
23600
23601
23602
23603 func (c *ProjectsLocationsJobTriggersDeleteCall) Header() http.Header {
23604 if c.header_ == nil {
23605 c.header_ = make(http.Header)
23606 }
23607 return c.header_
23608 }
23609
23610 func (c *ProjectsLocationsJobTriggersDeleteCall) doRequest(alt string) (*http.Response, error) {
23611 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23612 var body io.Reader = nil
23613 c.urlParams_.Set("alt", alt)
23614 c.urlParams_.Set("prettyPrint", "false")
23615 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
23616 urls += "?" + c.urlParams_.Encode()
23617 req, err := http.NewRequest("DELETE", urls, body)
23618 if err != nil {
23619 return nil, err
23620 }
23621 req.Header = reqHeaders
23622 googleapi.Expand(req.URL, map[string]string{
23623 "name": c.name,
23624 })
23625 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23626 }
23627
23628
23629
23630
23631
23632
23633
23634 func (c *ProjectsLocationsJobTriggersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23635 gensupport.SetOptions(c.urlParams_, opts...)
23636 res, err := c.doRequest("json")
23637 if res != nil && res.StatusCode == http.StatusNotModified {
23638 if res.Body != nil {
23639 res.Body.Close()
23640 }
23641 return nil, gensupport.WrapError(&googleapi.Error{
23642 Code: res.StatusCode,
23643 Header: res.Header,
23644 })
23645 }
23646 if err != nil {
23647 return nil, err
23648 }
23649 defer googleapi.CloseBody(res)
23650 if err := googleapi.CheckResponse(res); err != nil {
23651 return nil, gensupport.WrapError(err)
23652 }
23653 ret := &GoogleProtobufEmpty{
23654 ServerResponse: googleapi.ServerResponse{
23655 Header: res.Header,
23656 HTTPStatusCode: res.StatusCode,
23657 },
23658 }
23659 target := &ret
23660 if err := gensupport.DecodeResponse(target, res); err != nil {
23661 return nil, err
23662 }
23663 return ret, nil
23664 }
23665
23666 type ProjectsLocationsJobTriggersGetCall struct {
23667 s *Service
23668 name string
23669 urlParams_ gensupport.URLParams
23670 ifNoneMatch_ string
23671 ctx_ context.Context
23672 header_ http.Header
23673 }
23674
23675
23676
23677
23678
23679
23680
23681 func (r *ProjectsLocationsJobTriggersService) Get(name string) *ProjectsLocationsJobTriggersGetCall {
23682 c := &ProjectsLocationsJobTriggersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23683 c.name = name
23684 return c
23685 }
23686
23687
23688
23689
23690 func (c *ProjectsLocationsJobTriggersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersGetCall {
23691 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23692 return c
23693 }
23694
23695
23696
23697
23698 func (c *ProjectsLocationsJobTriggersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobTriggersGetCall {
23699 c.ifNoneMatch_ = entityTag
23700 return c
23701 }
23702
23703
23704 func (c *ProjectsLocationsJobTriggersGetCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersGetCall {
23705 c.ctx_ = ctx
23706 return c
23707 }
23708
23709
23710
23711 func (c *ProjectsLocationsJobTriggersGetCall) Header() http.Header {
23712 if c.header_ == nil {
23713 c.header_ = make(http.Header)
23714 }
23715 return c.header_
23716 }
23717
23718 func (c *ProjectsLocationsJobTriggersGetCall) doRequest(alt string) (*http.Response, error) {
23719 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23720 if c.ifNoneMatch_ != "" {
23721 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23722 }
23723 var body io.Reader = nil
23724 c.urlParams_.Set("alt", alt)
23725 c.urlParams_.Set("prettyPrint", "false")
23726 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
23727 urls += "?" + c.urlParams_.Encode()
23728 req, err := http.NewRequest("GET", urls, body)
23729 if err != nil {
23730 return nil, err
23731 }
23732 req.Header = reqHeaders
23733 googleapi.Expand(req.URL, map[string]string{
23734 "name": c.name,
23735 })
23736 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23737 }
23738
23739
23740
23741
23742
23743
23744
23745 func (c *ProjectsLocationsJobTriggersGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
23746 gensupport.SetOptions(c.urlParams_, opts...)
23747 res, err := c.doRequest("json")
23748 if res != nil && res.StatusCode == http.StatusNotModified {
23749 if res.Body != nil {
23750 res.Body.Close()
23751 }
23752 return nil, gensupport.WrapError(&googleapi.Error{
23753 Code: res.StatusCode,
23754 Header: res.Header,
23755 })
23756 }
23757 if err != nil {
23758 return nil, err
23759 }
23760 defer googleapi.CloseBody(res)
23761 if err := googleapi.CheckResponse(res); err != nil {
23762 return nil, gensupport.WrapError(err)
23763 }
23764 ret := &GooglePrivacyDlpV2JobTrigger{
23765 ServerResponse: googleapi.ServerResponse{
23766 Header: res.Header,
23767 HTTPStatusCode: res.StatusCode,
23768 },
23769 }
23770 target := &ret
23771 if err := gensupport.DecodeResponse(target, res); err != nil {
23772 return nil, err
23773 }
23774 return ret, nil
23775 }
23776
23777 type ProjectsLocationsJobTriggersHybridInspectCall struct {
23778 s *Service
23779 name string
23780 googleprivacydlpv2hybridinspectjobtriggerrequest *GooglePrivacyDlpV2HybridInspectJobTriggerRequest
23781 urlParams_ gensupport.URLParams
23782 ctx_ context.Context
23783 header_ http.Header
23784 }
23785
23786
23787
23788
23789
23790
23791
23792 func (r *ProjectsLocationsJobTriggersService) HybridInspect(name string, googleprivacydlpv2hybridinspectjobtriggerrequest *GooglePrivacyDlpV2HybridInspectJobTriggerRequest) *ProjectsLocationsJobTriggersHybridInspectCall {
23793 c := &ProjectsLocationsJobTriggersHybridInspectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23794 c.name = name
23795 c.googleprivacydlpv2hybridinspectjobtriggerrequest = googleprivacydlpv2hybridinspectjobtriggerrequest
23796 return c
23797 }
23798
23799
23800
23801
23802 func (c *ProjectsLocationsJobTriggersHybridInspectCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersHybridInspectCall {
23803 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23804 return c
23805 }
23806
23807
23808 func (c *ProjectsLocationsJobTriggersHybridInspectCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersHybridInspectCall {
23809 c.ctx_ = ctx
23810 return c
23811 }
23812
23813
23814
23815 func (c *ProjectsLocationsJobTriggersHybridInspectCall) Header() http.Header {
23816 if c.header_ == nil {
23817 c.header_ = make(http.Header)
23818 }
23819 return c.header_
23820 }
23821
23822 func (c *ProjectsLocationsJobTriggersHybridInspectCall) doRequest(alt string) (*http.Response, error) {
23823 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23824 var body io.Reader = nil
23825 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2hybridinspectjobtriggerrequest)
23826 if err != nil {
23827 return nil, err
23828 }
23829 c.urlParams_.Set("alt", alt)
23830 c.urlParams_.Set("prettyPrint", "false")
23831 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:hybridInspect")
23832 urls += "?" + c.urlParams_.Encode()
23833 req, err := http.NewRequest("POST", urls, body)
23834 if err != nil {
23835 return nil, err
23836 }
23837 req.Header = reqHeaders
23838 googleapi.Expand(req.URL, map[string]string{
23839 "name": c.name,
23840 })
23841 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23842 }
23843
23844
23845
23846
23847
23848
23849
23850 func (c *ProjectsLocationsJobTriggersHybridInspectCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2HybridInspectResponse, error) {
23851 gensupport.SetOptions(c.urlParams_, opts...)
23852 res, err := c.doRequest("json")
23853 if res != nil && res.StatusCode == http.StatusNotModified {
23854 if res.Body != nil {
23855 res.Body.Close()
23856 }
23857 return nil, gensupport.WrapError(&googleapi.Error{
23858 Code: res.StatusCode,
23859 Header: res.Header,
23860 })
23861 }
23862 if err != nil {
23863 return nil, err
23864 }
23865 defer googleapi.CloseBody(res)
23866 if err := googleapi.CheckResponse(res); err != nil {
23867 return nil, gensupport.WrapError(err)
23868 }
23869 ret := &GooglePrivacyDlpV2HybridInspectResponse{
23870 ServerResponse: googleapi.ServerResponse{
23871 Header: res.Header,
23872 HTTPStatusCode: res.StatusCode,
23873 },
23874 }
23875 target := &ret
23876 if err := gensupport.DecodeResponse(target, res); err != nil {
23877 return nil, err
23878 }
23879 return ret, nil
23880 }
23881
23882 type ProjectsLocationsJobTriggersListCall struct {
23883 s *Service
23884 parentid string
23885 urlParams_ gensupport.URLParams
23886 ifNoneMatch_ string
23887 ctx_ context.Context
23888 header_ http.Header
23889 }
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905 func (r *ProjectsLocationsJobTriggersService) List(parentid string) *ProjectsLocationsJobTriggersListCall {
23906 c := &ProjectsLocationsJobTriggersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23907 c.parentid = parentid
23908 return c
23909 }
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926 func (c *ProjectsLocationsJobTriggersListCall) Filter(filter string) *ProjectsLocationsJobTriggersListCall {
23927 c.urlParams_.Set("filter", filter)
23928 return c
23929 }
23930
23931
23932
23933 func (c *ProjectsLocationsJobTriggersListCall) LocationId(locationId string) *ProjectsLocationsJobTriggersListCall {
23934 c.urlParams_.Set("locationId", locationId)
23935 return c
23936 }
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948 func (c *ProjectsLocationsJobTriggersListCall) OrderBy(orderBy string) *ProjectsLocationsJobTriggersListCall {
23949 c.urlParams_.Set("orderBy", orderBy)
23950 return c
23951 }
23952
23953
23954
23955 func (c *ProjectsLocationsJobTriggersListCall) PageSize(pageSize int64) *ProjectsLocationsJobTriggersListCall {
23956 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23957 return c
23958 }
23959
23960
23961
23962
23963 func (c *ProjectsLocationsJobTriggersListCall) PageToken(pageToken string) *ProjectsLocationsJobTriggersListCall {
23964 c.urlParams_.Set("pageToken", pageToken)
23965 return c
23966 }
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976 func (c *ProjectsLocationsJobTriggersListCall) Type(type_ string) *ProjectsLocationsJobTriggersListCall {
23977 c.urlParams_.Set("type", type_)
23978 return c
23979 }
23980
23981
23982
23983
23984 func (c *ProjectsLocationsJobTriggersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersListCall {
23985 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23986 return c
23987 }
23988
23989
23990
23991
23992 func (c *ProjectsLocationsJobTriggersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsJobTriggersListCall {
23993 c.ifNoneMatch_ = entityTag
23994 return c
23995 }
23996
23997
23998 func (c *ProjectsLocationsJobTriggersListCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersListCall {
23999 c.ctx_ = ctx
24000 return c
24001 }
24002
24003
24004
24005 func (c *ProjectsLocationsJobTriggersListCall) Header() http.Header {
24006 if c.header_ == nil {
24007 c.header_ = make(http.Header)
24008 }
24009 return c.header_
24010 }
24011
24012 func (c *ProjectsLocationsJobTriggersListCall) doRequest(alt string) (*http.Response, error) {
24013 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24014 if c.ifNoneMatch_ != "" {
24015 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24016 }
24017 var body io.Reader = nil
24018 c.urlParams_.Set("alt", alt)
24019 c.urlParams_.Set("prettyPrint", "false")
24020 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/jobTriggers")
24021 urls += "?" + c.urlParams_.Encode()
24022 req, err := http.NewRequest("GET", urls, body)
24023 if err != nil {
24024 return nil, err
24025 }
24026 req.Header = reqHeaders
24027 googleapi.Expand(req.URL, map[string]string{
24028 "parent": c.parentid,
24029 })
24030 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24031 }
24032
24033
24034
24035
24036
24037
24038
24039 func (c *ProjectsLocationsJobTriggersListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListJobTriggersResponse, error) {
24040 gensupport.SetOptions(c.urlParams_, opts...)
24041 res, err := c.doRequest("json")
24042 if res != nil && res.StatusCode == http.StatusNotModified {
24043 if res.Body != nil {
24044 res.Body.Close()
24045 }
24046 return nil, gensupport.WrapError(&googleapi.Error{
24047 Code: res.StatusCode,
24048 Header: res.Header,
24049 })
24050 }
24051 if err != nil {
24052 return nil, err
24053 }
24054 defer googleapi.CloseBody(res)
24055 if err := googleapi.CheckResponse(res); err != nil {
24056 return nil, gensupport.WrapError(err)
24057 }
24058 ret := &GooglePrivacyDlpV2ListJobTriggersResponse{
24059 ServerResponse: googleapi.ServerResponse{
24060 Header: res.Header,
24061 HTTPStatusCode: res.StatusCode,
24062 },
24063 }
24064 target := &ret
24065 if err := gensupport.DecodeResponse(target, res); err != nil {
24066 return nil, err
24067 }
24068 return ret, nil
24069 }
24070
24071
24072
24073
24074 func (c *ProjectsLocationsJobTriggersListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListJobTriggersResponse) error) error {
24075 c.ctx_ = ctx
24076 defer c.PageToken(c.urlParams_.Get("pageToken"))
24077 for {
24078 x, err := c.Do()
24079 if err != nil {
24080 return err
24081 }
24082 if err := f(x); err != nil {
24083 return err
24084 }
24085 if x.NextPageToken == "" {
24086 return nil
24087 }
24088 c.PageToken(x.NextPageToken)
24089 }
24090 }
24091
24092 type ProjectsLocationsJobTriggersPatchCall struct {
24093 s *Service
24094 name string
24095 googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest
24096 urlParams_ gensupport.URLParams
24097 ctx_ context.Context
24098 header_ http.Header
24099 }
24100
24101
24102
24103
24104
24105
24106
24107 func (r *ProjectsLocationsJobTriggersService) Patch(name string, googleprivacydlpv2updatejobtriggerrequest *GooglePrivacyDlpV2UpdateJobTriggerRequest) *ProjectsLocationsJobTriggersPatchCall {
24108 c := &ProjectsLocationsJobTriggersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24109 c.name = name
24110 c.googleprivacydlpv2updatejobtriggerrequest = googleprivacydlpv2updatejobtriggerrequest
24111 return c
24112 }
24113
24114
24115
24116
24117 func (c *ProjectsLocationsJobTriggersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsJobTriggersPatchCall {
24118 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24119 return c
24120 }
24121
24122
24123 func (c *ProjectsLocationsJobTriggersPatchCall) Context(ctx context.Context) *ProjectsLocationsJobTriggersPatchCall {
24124 c.ctx_ = ctx
24125 return c
24126 }
24127
24128
24129
24130 func (c *ProjectsLocationsJobTriggersPatchCall) Header() http.Header {
24131 if c.header_ == nil {
24132 c.header_ = make(http.Header)
24133 }
24134 return c.header_
24135 }
24136
24137 func (c *ProjectsLocationsJobTriggersPatchCall) doRequest(alt string) (*http.Response, error) {
24138 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24139 var body io.Reader = nil
24140 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatejobtriggerrequest)
24141 if err != nil {
24142 return nil, err
24143 }
24144 c.urlParams_.Set("alt", alt)
24145 c.urlParams_.Set("prettyPrint", "false")
24146 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24147 urls += "?" + c.urlParams_.Encode()
24148 req, err := http.NewRequest("PATCH", urls, body)
24149 if err != nil {
24150 return nil, err
24151 }
24152 req.Header = reqHeaders
24153 googleapi.Expand(req.URL, map[string]string{
24154 "name": c.name,
24155 })
24156 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24157 }
24158
24159
24160
24161
24162
24163
24164
24165 func (c *ProjectsLocationsJobTriggersPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2JobTrigger, error) {
24166 gensupport.SetOptions(c.urlParams_, opts...)
24167 res, err := c.doRequest("json")
24168 if res != nil && res.StatusCode == http.StatusNotModified {
24169 if res.Body != nil {
24170 res.Body.Close()
24171 }
24172 return nil, gensupport.WrapError(&googleapi.Error{
24173 Code: res.StatusCode,
24174 Header: res.Header,
24175 })
24176 }
24177 if err != nil {
24178 return nil, err
24179 }
24180 defer googleapi.CloseBody(res)
24181 if err := googleapi.CheckResponse(res); err != nil {
24182 return nil, gensupport.WrapError(err)
24183 }
24184 ret := &GooglePrivacyDlpV2JobTrigger{
24185 ServerResponse: googleapi.ServerResponse{
24186 Header: res.Header,
24187 HTTPStatusCode: res.StatusCode,
24188 },
24189 }
24190 target := &ret
24191 if err := gensupport.DecodeResponse(target, res); err != nil {
24192 return nil, err
24193 }
24194 return ret, nil
24195 }
24196
24197 type ProjectsLocationsProjectDataProfilesGetCall struct {
24198 s *Service
24199 name string
24200 urlParams_ gensupport.URLParams
24201 ifNoneMatch_ string
24202 ctx_ context.Context
24203 header_ http.Header
24204 }
24205
24206
24207
24208
24209
24210 func (r *ProjectsLocationsProjectDataProfilesService) Get(name string) *ProjectsLocationsProjectDataProfilesGetCall {
24211 c := &ProjectsLocationsProjectDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24212 c.name = name
24213 return c
24214 }
24215
24216
24217
24218
24219 func (c *ProjectsLocationsProjectDataProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsProjectDataProfilesGetCall {
24220 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24221 return c
24222 }
24223
24224
24225
24226
24227 func (c *ProjectsLocationsProjectDataProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsProjectDataProfilesGetCall {
24228 c.ifNoneMatch_ = entityTag
24229 return c
24230 }
24231
24232
24233 func (c *ProjectsLocationsProjectDataProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsProjectDataProfilesGetCall {
24234 c.ctx_ = ctx
24235 return c
24236 }
24237
24238
24239
24240 func (c *ProjectsLocationsProjectDataProfilesGetCall) Header() http.Header {
24241 if c.header_ == nil {
24242 c.header_ = make(http.Header)
24243 }
24244 return c.header_
24245 }
24246
24247 func (c *ProjectsLocationsProjectDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
24248 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24249 if c.ifNoneMatch_ != "" {
24250 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24251 }
24252 var body io.Reader = nil
24253 c.urlParams_.Set("alt", alt)
24254 c.urlParams_.Set("prettyPrint", "false")
24255 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24256 urls += "?" + c.urlParams_.Encode()
24257 req, err := http.NewRequest("GET", urls, body)
24258 if err != nil {
24259 return nil, err
24260 }
24261 req.Header = reqHeaders
24262 googleapi.Expand(req.URL, map[string]string{
24263 "name": c.name,
24264 })
24265 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24266 }
24267
24268
24269
24270
24271
24272
24273
24274 func (c *ProjectsLocationsProjectDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ProjectDataProfile, error) {
24275 gensupport.SetOptions(c.urlParams_, opts...)
24276 res, err := c.doRequest("json")
24277 if res != nil && res.StatusCode == http.StatusNotModified {
24278 if res.Body != nil {
24279 res.Body.Close()
24280 }
24281 return nil, gensupport.WrapError(&googleapi.Error{
24282 Code: res.StatusCode,
24283 Header: res.Header,
24284 })
24285 }
24286 if err != nil {
24287 return nil, err
24288 }
24289 defer googleapi.CloseBody(res)
24290 if err := googleapi.CheckResponse(res); err != nil {
24291 return nil, gensupport.WrapError(err)
24292 }
24293 ret := &GooglePrivacyDlpV2ProjectDataProfile{
24294 ServerResponse: googleapi.ServerResponse{
24295 Header: res.Header,
24296 HTTPStatusCode: res.StatusCode,
24297 },
24298 }
24299 target := &ret
24300 if err := gensupport.DecodeResponse(target, res); err != nil {
24301 return nil, err
24302 }
24303 return ret, nil
24304 }
24305
24306 type ProjectsLocationsProjectDataProfilesListCall struct {
24307 s *Service
24308 parent string
24309 urlParams_ gensupport.URLParams
24310 ifNoneMatch_ string
24311 ctx_ context.Context
24312 header_ http.Header
24313 }
24314
24315
24316
24317
24318 func (r *ProjectsLocationsProjectDataProfilesService) List(parent string) *ProjectsLocationsProjectDataProfilesListCall {
24319 c := &ProjectsLocationsProjectDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24320 c.parent = parent
24321 return c
24322 }
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335 func (c *ProjectsLocationsProjectDataProfilesListCall) Filter(filter string) *ProjectsLocationsProjectDataProfilesListCall {
24336 c.urlParams_.Set("filter", filter)
24337 return c
24338 }
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349 func (c *ProjectsLocationsProjectDataProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsProjectDataProfilesListCall {
24350 c.urlParams_.Set("orderBy", orderBy)
24351 return c
24352 }
24353
24354
24355
24356
24357 func (c *ProjectsLocationsProjectDataProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsProjectDataProfilesListCall {
24358 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24359 return c
24360 }
24361
24362
24363
24364 func (c *ProjectsLocationsProjectDataProfilesListCall) PageToken(pageToken string) *ProjectsLocationsProjectDataProfilesListCall {
24365 c.urlParams_.Set("pageToken", pageToken)
24366 return c
24367 }
24368
24369
24370
24371
24372 func (c *ProjectsLocationsProjectDataProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsProjectDataProfilesListCall {
24373 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24374 return c
24375 }
24376
24377
24378
24379
24380 func (c *ProjectsLocationsProjectDataProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsProjectDataProfilesListCall {
24381 c.ifNoneMatch_ = entityTag
24382 return c
24383 }
24384
24385
24386 func (c *ProjectsLocationsProjectDataProfilesListCall) Context(ctx context.Context) *ProjectsLocationsProjectDataProfilesListCall {
24387 c.ctx_ = ctx
24388 return c
24389 }
24390
24391
24392
24393 func (c *ProjectsLocationsProjectDataProfilesListCall) Header() http.Header {
24394 if c.header_ == nil {
24395 c.header_ = make(http.Header)
24396 }
24397 return c.header_
24398 }
24399
24400 func (c *ProjectsLocationsProjectDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
24401 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24402 if c.ifNoneMatch_ != "" {
24403 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24404 }
24405 var body io.Reader = nil
24406 c.urlParams_.Set("alt", alt)
24407 c.urlParams_.Set("prettyPrint", "false")
24408 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/projectDataProfiles")
24409 urls += "?" + c.urlParams_.Encode()
24410 req, err := http.NewRequest("GET", urls, body)
24411 if err != nil {
24412 return nil, err
24413 }
24414 req.Header = reqHeaders
24415 googleapi.Expand(req.URL, map[string]string{
24416 "parent": c.parent,
24417 })
24418 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24419 }
24420
24421
24422
24423
24424
24425
24426
24427 func (c *ProjectsLocationsProjectDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListProjectDataProfilesResponse, error) {
24428 gensupport.SetOptions(c.urlParams_, opts...)
24429 res, err := c.doRequest("json")
24430 if res != nil && res.StatusCode == http.StatusNotModified {
24431 if res.Body != nil {
24432 res.Body.Close()
24433 }
24434 return nil, gensupport.WrapError(&googleapi.Error{
24435 Code: res.StatusCode,
24436 Header: res.Header,
24437 })
24438 }
24439 if err != nil {
24440 return nil, err
24441 }
24442 defer googleapi.CloseBody(res)
24443 if err := googleapi.CheckResponse(res); err != nil {
24444 return nil, gensupport.WrapError(err)
24445 }
24446 ret := &GooglePrivacyDlpV2ListProjectDataProfilesResponse{
24447 ServerResponse: googleapi.ServerResponse{
24448 Header: res.Header,
24449 HTTPStatusCode: res.StatusCode,
24450 },
24451 }
24452 target := &ret
24453 if err := gensupport.DecodeResponse(target, res); err != nil {
24454 return nil, err
24455 }
24456 return ret, nil
24457 }
24458
24459
24460
24461
24462 func (c *ProjectsLocationsProjectDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListProjectDataProfilesResponse) error) error {
24463 c.ctx_ = ctx
24464 defer c.PageToken(c.urlParams_.Get("pageToken"))
24465 for {
24466 x, err := c.Do()
24467 if err != nil {
24468 return err
24469 }
24470 if err := f(x); err != nil {
24471 return err
24472 }
24473 if x.NextPageToken == "" {
24474 return nil
24475 }
24476 c.PageToken(x.NextPageToken)
24477 }
24478 }
24479
24480 type ProjectsLocationsStoredInfoTypesCreateCall struct {
24481 s *Service
24482 parentid string
24483 googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest
24484 urlParams_ gensupport.URLParams
24485 ctx_ context.Context
24486 header_ http.Header
24487 }
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507 func (r *ProjectsLocationsStoredInfoTypesService) Create(parentid string, googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) *ProjectsLocationsStoredInfoTypesCreateCall {
24508 c := &ProjectsLocationsStoredInfoTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24509 c.parentid = parentid
24510 c.googleprivacydlpv2createstoredinfotyperequest = googleprivacydlpv2createstoredinfotyperequest
24511 return c
24512 }
24513
24514
24515
24516
24517 func (c *ProjectsLocationsStoredInfoTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesCreateCall {
24518 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24519 return c
24520 }
24521
24522
24523 func (c *ProjectsLocationsStoredInfoTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesCreateCall {
24524 c.ctx_ = ctx
24525 return c
24526 }
24527
24528
24529
24530 func (c *ProjectsLocationsStoredInfoTypesCreateCall) Header() http.Header {
24531 if c.header_ == nil {
24532 c.header_ = make(http.Header)
24533 }
24534 return c.header_
24535 }
24536
24537 func (c *ProjectsLocationsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) {
24538 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24539 var body io.Reader = nil
24540 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createstoredinfotyperequest)
24541 if err != nil {
24542 return nil, err
24543 }
24544 c.urlParams_.Set("alt", alt)
24545 c.urlParams_.Set("prettyPrint", "false")
24546 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
24547 urls += "?" + c.urlParams_.Encode()
24548 req, err := http.NewRequest("POST", urls, body)
24549 if err != nil {
24550 return nil, err
24551 }
24552 req.Header = reqHeaders
24553 googleapi.Expand(req.URL, map[string]string{
24554 "parent": c.parentid,
24555 })
24556 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24557 }
24558
24559
24560
24561
24562
24563
24564
24565 func (c *ProjectsLocationsStoredInfoTypesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
24566 gensupport.SetOptions(c.urlParams_, opts...)
24567 res, err := c.doRequest("json")
24568 if res != nil && res.StatusCode == http.StatusNotModified {
24569 if res.Body != nil {
24570 res.Body.Close()
24571 }
24572 return nil, gensupport.WrapError(&googleapi.Error{
24573 Code: res.StatusCode,
24574 Header: res.Header,
24575 })
24576 }
24577 if err != nil {
24578 return nil, err
24579 }
24580 defer googleapi.CloseBody(res)
24581 if err := googleapi.CheckResponse(res); err != nil {
24582 return nil, gensupport.WrapError(err)
24583 }
24584 ret := &GooglePrivacyDlpV2StoredInfoType{
24585 ServerResponse: googleapi.ServerResponse{
24586 Header: res.Header,
24587 HTTPStatusCode: res.StatusCode,
24588 },
24589 }
24590 target := &ret
24591 if err := gensupport.DecodeResponse(target, res); err != nil {
24592 return nil, err
24593 }
24594 return ret, nil
24595 }
24596
24597 type ProjectsLocationsStoredInfoTypesDeleteCall struct {
24598 s *Service
24599 name string
24600 urlParams_ gensupport.URLParams
24601 ctx_ context.Context
24602 header_ http.Header
24603 }
24604
24605
24606
24607
24608
24609
24610
24611
24612 func (r *ProjectsLocationsStoredInfoTypesService) Delete(name string) *ProjectsLocationsStoredInfoTypesDeleteCall {
24613 c := &ProjectsLocationsStoredInfoTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24614 c.name = name
24615 return c
24616 }
24617
24618
24619
24620
24621 func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesDeleteCall {
24622 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24623 return c
24624 }
24625
24626
24627 func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesDeleteCall {
24628 c.ctx_ = ctx
24629 return c
24630 }
24631
24632
24633
24634 func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Header() http.Header {
24635 if c.header_ == nil {
24636 c.header_ = make(http.Header)
24637 }
24638 return c.header_
24639 }
24640
24641 func (c *ProjectsLocationsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
24642 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24643 var body io.Reader = nil
24644 c.urlParams_.Set("alt", alt)
24645 c.urlParams_.Set("prettyPrint", "false")
24646 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24647 urls += "?" + c.urlParams_.Encode()
24648 req, err := http.NewRequest("DELETE", urls, body)
24649 if err != nil {
24650 return nil, err
24651 }
24652 req.Header = reqHeaders
24653 googleapi.Expand(req.URL, map[string]string{
24654 "name": c.name,
24655 })
24656 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24657 }
24658
24659
24660
24661
24662
24663
24664
24665 func (c *ProjectsLocationsStoredInfoTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24666 gensupport.SetOptions(c.urlParams_, opts...)
24667 res, err := c.doRequest("json")
24668 if res != nil && res.StatusCode == http.StatusNotModified {
24669 if res.Body != nil {
24670 res.Body.Close()
24671 }
24672 return nil, gensupport.WrapError(&googleapi.Error{
24673 Code: res.StatusCode,
24674 Header: res.Header,
24675 })
24676 }
24677 if err != nil {
24678 return nil, err
24679 }
24680 defer googleapi.CloseBody(res)
24681 if err := googleapi.CheckResponse(res); err != nil {
24682 return nil, gensupport.WrapError(err)
24683 }
24684 ret := &GoogleProtobufEmpty{
24685 ServerResponse: googleapi.ServerResponse{
24686 Header: res.Header,
24687 HTTPStatusCode: res.StatusCode,
24688 },
24689 }
24690 target := &ret
24691 if err := gensupport.DecodeResponse(target, res); err != nil {
24692 return nil, err
24693 }
24694 return ret, nil
24695 }
24696
24697 type ProjectsLocationsStoredInfoTypesGetCall struct {
24698 s *Service
24699 name string
24700 urlParams_ gensupport.URLParams
24701 ifNoneMatch_ string
24702 ctx_ context.Context
24703 header_ http.Header
24704 }
24705
24706
24707
24708
24709
24710
24711
24712
24713 func (r *ProjectsLocationsStoredInfoTypesService) Get(name string) *ProjectsLocationsStoredInfoTypesGetCall {
24714 c := &ProjectsLocationsStoredInfoTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24715 c.name = name
24716 return c
24717 }
24718
24719
24720
24721
24722 func (c *ProjectsLocationsStoredInfoTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesGetCall {
24723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24724 return c
24725 }
24726
24727
24728
24729
24730 func (c *ProjectsLocationsStoredInfoTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsStoredInfoTypesGetCall {
24731 c.ifNoneMatch_ = entityTag
24732 return c
24733 }
24734
24735
24736 func (c *ProjectsLocationsStoredInfoTypesGetCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesGetCall {
24737 c.ctx_ = ctx
24738 return c
24739 }
24740
24741
24742
24743 func (c *ProjectsLocationsStoredInfoTypesGetCall) Header() http.Header {
24744 if c.header_ == nil {
24745 c.header_ = make(http.Header)
24746 }
24747 return c.header_
24748 }
24749
24750 func (c *ProjectsLocationsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) {
24751 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24752 if c.ifNoneMatch_ != "" {
24753 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24754 }
24755 var body io.Reader = nil
24756 c.urlParams_.Set("alt", alt)
24757 c.urlParams_.Set("prettyPrint", "false")
24758 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24759 urls += "?" + c.urlParams_.Encode()
24760 req, err := http.NewRequest("GET", urls, body)
24761 if err != nil {
24762 return nil, err
24763 }
24764 req.Header = reqHeaders
24765 googleapi.Expand(req.URL, map[string]string{
24766 "name": c.name,
24767 })
24768 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24769 }
24770
24771
24772
24773
24774
24775
24776
24777 func (c *ProjectsLocationsStoredInfoTypesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
24778 gensupport.SetOptions(c.urlParams_, opts...)
24779 res, err := c.doRequest("json")
24780 if res != nil && res.StatusCode == http.StatusNotModified {
24781 if res.Body != nil {
24782 res.Body.Close()
24783 }
24784 return nil, gensupport.WrapError(&googleapi.Error{
24785 Code: res.StatusCode,
24786 Header: res.Header,
24787 })
24788 }
24789 if err != nil {
24790 return nil, err
24791 }
24792 defer googleapi.CloseBody(res)
24793 if err := googleapi.CheckResponse(res); err != nil {
24794 return nil, gensupport.WrapError(err)
24795 }
24796 ret := &GooglePrivacyDlpV2StoredInfoType{
24797 ServerResponse: googleapi.ServerResponse{
24798 Header: res.Header,
24799 HTTPStatusCode: res.StatusCode,
24800 },
24801 }
24802 target := &ret
24803 if err := gensupport.DecodeResponse(target, res); err != nil {
24804 return nil, err
24805 }
24806 return ret, nil
24807 }
24808
24809 type ProjectsLocationsStoredInfoTypesListCall struct {
24810 s *Service
24811 parentid string
24812 urlParams_ gensupport.URLParams
24813 ifNoneMatch_ string
24814 ctx_ context.Context
24815 header_ http.Header
24816 }
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833 func (r *ProjectsLocationsStoredInfoTypesService) List(parentid string) *ProjectsLocationsStoredInfoTypesListCall {
24834 c := &ProjectsLocationsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24835 c.parentid = parentid
24836 return c
24837 }
24838
24839
24840
24841 func (c *ProjectsLocationsStoredInfoTypesListCall) LocationId(locationId string) *ProjectsLocationsStoredInfoTypesListCall {
24842 c.urlParams_.Set("locationId", locationId)
24843 return c
24844 }
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854 func (c *ProjectsLocationsStoredInfoTypesListCall) OrderBy(orderBy string) *ProjectsLocationsStoredInfoTypesListCall {
24855 c.urlParams_.Set("orderBy", orderBy)
24856 return c
24857 }
24858
24859
24860
24861
24862 func (c *ProjectsLocationsStoredInfoTypesListCall) PageSize(pageSize int64) *ProjectsLocationsStoredInfoTypesListCall {
24863 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24864 return c
24865 }
24866
24867
24868
24869 func (c *ProjectsLocationsStoredInfoTypesListCall) PageToken(pageToken string) *ProjectsLocationsStoredInfoTypesListCall {
24870 c.urlParams_.Set("pageToken", pageToken)
24871 return c
24872 }
24873
24874
24875
24876
24877 func (c *ProjectsLocationsStoredInfoTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesListCall {
24878 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24879 return c
24880 }
24881
24882
24883
24884
24885 func (c *ProjectsLocationsStoredInfoTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsStoredInfoTypesListCall {
24886 c.ifNoneMatch_ = entityTag
24887 return c
24888 }
24889
24890
24891 func (c *ProjectsLocationsStoredInfoTypesListCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesListCall {
24892 c.ctx_ = ctx
24893 return c
24894 }
24895
24896
24897
24898 func (c *ProjectsLocationsStoredInfoTypesListCall) Header() http.Header {
24899 if c.header_ == nil {
24900 c.header_ = make(http.Header)
24901 }
24902 return c.header_
24903 }
24904
24905 func (c *ProjectsLocationsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
24906 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24907 if c.ifNoneMatch_ != "" {
24908 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24909 }
24910 var body io.Reader = nil
24911 c.urlParams_.Set("alt", alt)
24912 c.urlParams_.Set("prettyPrint", "false")
24913 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
24914 urls += "?" + c.urlParams_.Encode()
24915 req, err := http.NewRequest("GET", urls, body)
24916 if err != nil {
24917 return nil, err
24918 }
24919 req.Header = reqHeaders
24920 googleapi.Expand(req.URL, map[string]string{
24921 "parent": c.parentid,
24922 })
24923 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24924 }
24925
24926
24927
24928
24929
24930
24931
24932 func (c *ProjectsLocationsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListStoredInfoTypesResponse, error) {
24933 gensupport.SetOptions(c.urlParams_, opts...)
24934 res, err := c.doRequest("json")
24935 if res != nil && res.StatusCode == http.StatusNotModified {
24936 if res.Body != nil {
24937 res.Body.Close()
24938 }
24939 return nil, gensupport.WrapError(&googleapi.Error{
24940 Code: res.StatusCode,
24941 Header: res.Header,
24942 })
24943 }
24944 if err != nil {
24945 return nil, err
24946 }
24947 defer googleapi.CloseBody(res)
24948 if err := googleapi.CheckResponse(res); err != nil {
24949 return nil, gensupport.WrapError(err)
24950 }
24951 ret := &GooglePrivacyDlpV2ListStoredInfoTypesResponse{
24952 ServerResponse: googleapi.ServerResponse{
24953 Header: res.Header,
24954 HTTPStatusCode: res.StatusCode,
24955 },
24956 }
24957 target := &ret
24958 if err := gensupport.DecodeResponse(target, res); err != nil {
24959 return nil, err
24960 }
24961 return ret, nil
24962 }
24963
24964
24965
24966
24967 func (c *ProjectsLocationsStoredInfoTypesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListStoredInfoTypesResponse) error) error {
24968 c.ctx_ = ctx
24969 defer c.PageToken(c.urlParams_.Get("pageToken"))
24970 for {
24971 x, err := c.Do()
24972 if err != nil {
24973 return err
24974 }
24975 if err := f(x); err != nil {
24976 return err
24977 }
24978 if x.NextPageToken == "" {
24979 return nil
24980 }
24981 c.PageToken(x.NextPageToken)
24982 }
24983 }
24984
24985 type ProjectsLocationsStoredInfoTypesPatchCall struct {
24986 s *Service
24987 name string
24988 googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
24989 urlParams_ gensupport.URLParams
24990 ctx_ context.Context
24991 header_ http.Header
24992 }
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002 func (r *ProjectsLocationsStoredInfoTypesService) Patch(name string, googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) *ProjectsLocationsStoredInfoTypesPatchCall {
25003 c := &ProjectsLocationsStoredInfoTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25004 c.name = name
25005 c.googleprivacydlpv2updatestoredinfotyperequest = googleprivacydlpv2updatestoredinfotyperequest
25006 return c
25007 }
25008
25009
25010
25011
25012 func (c *ProjectsLocationsStoredInfoTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsStoredInfoTypesPatchCall {
25013 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25014 return c
25015 }
25016
25017
25018 func (c *ProjectsLocationsStoredInfoTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsStoredInfoTypesPatchCall {
25019 c.ctx_ = ctx
25020 return c
25021 }
25022
25023
25024
25025 func (c *ProjectsLocationsStoredInfoTypesPatchCall) Header() http.Header {
25026 if c.header_ == nil {
25027 c.header_ = make(http.Header)
25028 }
25029 return c.header_
25030 }
25031
25032 func (c *ProjectsLocationsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) {
25033 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25034 var body io.Reader = nil
25035 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatestoredinfotyperequest)
25036 if err != nil {
25037 return nil, err
25038 }
25039 c.urlParams_.Set("alt", alt)
25040 c.urlParams_.Set("prettyPrint", "false")
25041 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25042 urls += "?" + c.urlParams_.Encode()
25043 req, err := http.NewRequest("PATCH", urls, body)
25044 if err != nil {
25045 return nil, err
25046 }
25047 req.Header = reqHeaders
25048 googleapi.Expand(req.URL, map[string]string{
25049 "name": c.name,
25050 })
25051 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25052 }
25053
25054
25055
25056
25057
25058
25059
25060 func (c *ProjectsLocationsStoredInfoTypesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
25061 gensupport.SetOptions(c.urlParams_, opts...)
25062 res, err := c.doRequest("json")
25063 if res != nil && res.StatusCode == http.StatusNotModified {
25064 if res.Body != nil {
25065 res.Body.Close()
25066 }
25067 return nil, gensupport.WrapError(&googleapi.Error{
25068 Code: res.StatusCode,
25069 Header: res.Header,
25070 })
25071 }
25072 if err != nil {
25073 return nil, err
25074 }
25075 defer googleapi.CloseBody(res)
25076 if err := googleapi.CheckResponse(res); err != nil {
25077 return nil, gensupport.WrapError(err)
25078 }
25079 ret := &GooglePrivacyDlpV2StoredInfoType{
25080 ServerResponse: googleapi.ServerResponse{
25081 Header: res.Header,
25082 HTTPStatusCode: res.StatusCode,
25083 },
25084 }
25085 target := &ret
25086 if err := gensupport.DecodeResponse(target, res); err != nil {
25087 return nil, err
25088 }
25089 return ret, nil
25090 }
25091
25092 type ProjectsLocationsTableDataProfilesDeleteCall struct {
25093 s *Service
25094 name string
25095 urlParams_ gensupport.URLParams
25096 ctx_ context.Context
25097 header_ http.Header
25098 }
25099
25100
25101
25102
25103
25104 func (r *ProjectsLocationsTableDataProfilesService) Delete(name string) *ProjectsLocationsTableDataProfilesDeleteCall {
25105 c := &ProjectsLocationsTableDataProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25106 c.name = name
25107 return c
25108 }
25109
25110
25111
25112
25113 func (c *ProjectsLocationsTableDataProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTableDataProfilesDeleteCall {
25114 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25115 return c
25116 }
25117
25118
25119 func (c *ProjectsLocationsTableDataProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsTableDataProfilesDeleteCall {
25120 c.ctx_ = ctx
25121 return c
25122 }
25123
25124
25125
25126 func (c *ProjectsLocationsTableDataProfilesDeleteCall) Header() http.Header {
25127 if c.header_ == nil {
25128 c.header_ = make(http.Header)
25129 }
25130 return c.header_
25131 }
25132
25133 func (c *ProjectsLocationsTableDataProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
25134 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25135 var body io.Reader = nil
25136 c.urlParams_.Set("alt", alt)
25137 c.urlParams_.Set("prettyPrint", "false")
25138 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25139 urls += "?" + c.urlParams_.Encode()
25140 req, err := http.NewRequest("DELETE", urls, body)
25141 if err != nil {
25142 return nil, err
25143 }
25144 req.Header = reqHeaders
25145 googleapi.Expand(req.URL, map[string]string{
25146 "name": c.name,
25147 })
25148 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25149 }
25150
25151
25152
25153
25154
25155
25156
25157 func (c *ProjectsLocationsTableDataProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25158 gensupport.SetOptions(c.urlParams_, opts...)
25159 res, err := c.doRequest("json")
25160 if res != nil && res.StatusCode == http.StatusNotModified {
25161 if res.Body != nil {
25162 res.Body.Close()
25163 }
25164 return nil, gensupport.WrapError(&googleapi.Error{
25165 Code: res.StatusCode,
25166 Header: res.Header,
25167 })
25168 }
25169 if err != nil {
25170 return nil, err
25171 }
25172 defer googleapi.CloseBody(res)
25173 if err := googleapi.CheckResponse(res); err != nil {
25174 return nil, gensupport.WrapError(err)
25175 }
25176 ret := &GoogleProtobufEmpty{
25177 ServerResponse: googleapi.ServerResponse{
25178 Header: res.Header,
25179 HTTPStatusCode: res.StatusCode,
25180 },
25181 }
25182 target := &ret
25183 if err := gensupport.DecodeResponse(target, res); err != nil {
25184 return nil, err
25185 }
25186 return ret, nil
25187 }
25188
25189 type ProjectsLocationsTableDataProfilesGetCall struct {
25190 s *Service
25191 name string
25192 urlParams_ gensupport.URLParams
25193 ifNoneMatch_ string
25194 ctx_ context.Context
25195 header_ http.Header
25196 }
25197
25198
25199
25200
25201
25202 func (r *ProjectsLocationsTableDataProfilesService) Get(name string) *ProjectsLocationsTableDataProfilesGetCall {
25203 c := &ProjectsLocationsTableDataProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25204 c.name = name
25205 return c
25206 }
25207
25208
25209
25210
25211 func (c *ProjectsLocationsTableDataProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsTableDataProfilesGetCall {
25212 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25213 return c
25214 }
25215
25216
25217
25218
25219 func (c *ProjectsLocationsTableDataProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsTableDataProfilesGetCall {
25220 c.ifNoneMatch_ = entityTag
25221 return c
25222 }
25223
25224
25225 func (c *ProjectsLocationsTableDataProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsTableDataProfilesGetCall {
25226 c.ctx_ = ctx
25227 return c
25228 }
25229
25230
25231
25232 func (c *ProjectsLocationsTableDataProfilesGetCall) Header() http.Header {
25233 if c.header_ == nil {
25234 c.header_ = make(http.Header)
25235 }
25236 return c.header_
25237 }
25238
25239 func (c *ProjectsLocationsTableDataProfilesGetCall) doRequest(alt string) (*http.Response, error) {
25240 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25241 if c.ifNoneMatch_ != "" {
25242 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25243 }
25244 var body io.Reader = nil
25245 c.urlParams_.Set("alt", alt)
25246 c.urlParams_.Set("prettyPrint", "false")
25247 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25248 urls += "?" + c.urlParams_.Encode()
25249 req, err := http.NewRequest("GET", urls, body)
25250 if err != nil {
25251 return nil, err
25252 }
25253 req.Header = reqHeaders
25254 googleapi.Expand(req.URL, map[string]string{
25255 "name": c.name,
25256 })
25257 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25258 }
25259
25260
25261
25262
25263
25264
25265
25266 func (c *ProjectsLocationsTableDataProfilesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2TableDataProfile, error) {
25267 gensupport.SetOptions(c.urlParams_, opts...)
25268 res, err := c.doRequest("json")
25269 if res != nil && res.StatusCode == http.StatusNotModified {
25270 if res.Body != nil {
25271 res.Body.Close()
25272 }
25273 return nil, gensupport.WrapError(&googleapi.Error{
25274 Code: res.StatusCode,
25275 Header: res.Header,
25276 })
25277 }
25278 if err != nil {
25279 return nil, err
25280 }
25281 defer googleapi.CloseBody(res)
25282 if err := googleapi.CheckResponse(res); err != nil {
25283 return nil, gensupport.WrapError(err)
25284 }
25285 ret := &GooglePrivacyDlpV2TableDataProfile{
25286 ServerResponse: googleapi.ServerResponse{
25287 Header: res.Header,
25288 HTTPStatusCode: res.StatusCode,
25289 },
25290 }
25291 target := &ret
25292 if err := gensupport.DecodeResponse(target, res); err != nil {
25293 return nil, err
25294 }
25295 return ret, nil
25296 }
25297
25298 type ProjectsLocationsTableDataProfilesListCall struct {
25299 s *Service
25300 parent string
25301 urlParams_ gensupport.URLParams
25302 ifNoneMatch_ string
25303 ctx_ context.Context
25304 header_ http.Header
25305 }
25306
25307
25308
25309
25310
25311
25312 func (r *ProjectsLocationsTableDataProfilesService) List(parent string) *ProjectsLocationsTableDataProfilesListCall {
25313 c := &ProjectsLocationsTableDataProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25314 c.parent = parent
25315 return c
25316 }
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333 func (c *ProjectsLocationsTableDataProfilesListCall) Filter(filter string) *ProjectsLocationsTableDataProfilesListCall {
25334 c.urlParams_.Set("filter", filter)
25335 return c
25336 }
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351 func (c *ProjectsLocationsTableDataProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsTableDataProfilesListCall {
25352 c.urlParams_.Set("orderBy", orderBy)
25353 return c
25354 }
25355
25356
25357
25358
25359 func (c *ProjectsLocationsTableDataProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsTableDataProfilesListCall {
25360 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25361 return c
25362 }
25363
25364
25365
25366 func (c *ProjectsLocationsTableDataProfilesListCall) PageToken(pageToken string) *ProjectsLocationsTableDataProfilesListCall {
25367 c.urlParams_.Set("pageToken", pageToken)
25368 return c
25369 }
25370
25371
25372
25373
25374 func (c *ProjectsLocationsTableDataProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsTableDataProfilesListCall {
25375 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25376 return c
25377 }
25378
25379
25380
25381
25382 func (c *ProjectsLocationsTableDataProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsTableDataProfilesListCall {
25383 c.ifNoneMatch_ = entityTag
25384 return c
25385 }
25386
25387
25388 func (c *ProjectsLocationsTableDataProfilesListCall) Context(ctx context.Context) *ProjectsLocationsTableDataProfilesListCall {
25389 c.ctx_ = ctx
25390 return c
25391 }
25392
25393
25394
25395 func (c *ProjectsLocationsTableDataProfilesListCall) Header() http.Header {
25396 if c.header_ == nil {
25397 c.header_ = make(http.Header)
25398 }
25399 return c.header_
25400 }
25401
25402 func (c *ProjectsLocationsTableDataProfilesListCall) doRequest(alt string) (*http.Response, error) {
25403 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25404 if c.ifNoneMatch_ != "" {
25405 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25406 }
25407 var body io.Reader = nil
25408 c.urlParams_.Set("alt", alt)
25409 c.urlParams_.Set("prettyPrint", "false")
25410 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/tableDataProfiles")
25411 urls += "?" + c.urlParams_.Encode()
25412 req, err := http.NewRequest("GET", urls, body)
25413 if err != nil {
25414 return nil, err
25415 }
25416 req.Header = reqHeaders
25417 googleapi.Expand(req.URL, map[string]string{
25418 "parent": c.parent,
25419 })
25420 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25421 }
25422
25423
25424
25425
25426
25427
25428
25429 func (c *ProjectsLocationsTableDataProfilesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListTableDataProfilesResponse, error) {
25430 gensupport.SetOptions(c.urlParams_, opts...)
25431 res, err := c.doRequest("json")
25432 if res != nil && res.StatusCode == http.StatusNotModified {
25433 if res.Body != nil {
25434 res.Body.Close()
25435 }
25436 return nil, gensupport.WrapError(&googleapi.Error{
25437 Code: res.StatusCode,
25438 Header: res.Header,
25439 })
25440 }
25441 if err != nil {
25442 return nil, err
25443 }
25444 defer googleapi.CloseBody(res)
25445 if err := googleapi.CheckResponse(res); err != nil {
25446 return nil, gensupport.WrapError(err)
25447 }
25448 ret := &GooglePrivacyDlpV2ListTableDataProfilesResponse{
25449 ServerResponse: googleapi.ServerResponse{
25450 Header: res.Header,
25451 HTTPStatusCode: res.StatusCode,
25452 },
25453 }
25454 target := &ret
25455 if err := gensupport.DecodeResponse(target, res); err != nil {
25456 return nil, err
25457 }
25458 return ret, nil
25459 }
25460
25461
25462
25463
25464 func (c *ProjectsLocationsTableDataProfilesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListTableDataProfilesResponse) error) error {
25465 c.ctx_ = ctx
25466 defer c.PageToken(c.urlParams_.Get("pageToken"))
25467 for {
25468 x, err := c.Do()
25469 if err != nil {
25470 return err
25471 }
25472 if err := f(x); err != nil {
25473 return err
25474 }
25475 if x.NextPageToken == "" {
25476 return nil
25477 }
25478 c.PageToken(x.NextPageToken)
25479 }
25480 }
25481
25482 type ProjectsStoredInfoTypesCreateCall struct {
25483 s *Service
25484 parentid string
25485 googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest
25486 urlParams_ gensupport.URLParams
25487 ctx_ context.Context
25488 header_ http.Header
25489 }
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509 func (r *ProjectsStoredInfoTypesService) Create(parentid string, googleprivacydlpv2createstoredinfotyperequest *GooglePrivacyDlpV2CreateStoredInfoTypeRequest) *ProjectsStoredInfoTypesCreateCall {
25510 c := &ProjectsStoredInfoTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25511 c.parentid = parentid
25512 c.googleprivacydlpv2createstoredinfotyperequest = googleprivacydlpv2createstoredinfotyperequest
25513 return c
25514 }
25515
25516
25517
25518
25519 func (c *ProjectsStoredInfoTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesCreateCall {
25520 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25521 return c
25522 }
25523
25524
25525 func (c *ProjectsStoredInfoTypesCreateCall) Context(ctx context.Context) *ProjectsStoredInfoTypesCreateCall {
25526 c.ctx_ = ctx
25527 return c
25528 }
25529
25530
25531
25532 func (c *ProjectsStoredInfoTypesCreateCall) Header() http.Header {
25533 if c.header_ == nil {
25534 c.header_ = make(http.Header)
25535 }
25536 return c.header_
25537 }
25538
25539 func (c *ProjectsStoredInfoTypesCreateCall) doRequest(alt string) (*http.Response, error) {
25540 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25541 var body io.Reader = nil
25542 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2createstoredinfotyperequest)
25543 if err != nil {
25544 return nil, err
25545 }
25546 c.urlParams_.Set("alt", alt)
25547 c.urlParams_.Set("prettyPrint", "false")
25548 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
25549 urls += "?" + c.urlParams_.Encode()
25550 req, err := http.NewRequest("POST", urls, body)
25551 if err != nil {
25552 return nil, err
25553 }
25554 req.Header = reqHeaders
25555 googleapi.Expand(req.URL, map[string]string{
25556 "parent": c.parentid,
25557 })
25558 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25559 }
25560
25561
25562
25563
25564
25565
25566
25567 func (c *ProjectsStoredInfoTypesCreateCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
25568 gensupport.SetOptions(c.urlParams_, opts...)
25569 res, err := c.doRequest("json")
25570 if res != nil && res.StatusCode == http.StatusNotModified {
25571 if res.Body != nil {
25572 res.Body.Close()
25573 }
25574 return nil, gensupport.WrapError(&googleapi.Error{
25575 Code: res.StatusCode,
25576 Header: res.Header,
25577 })
25578 }
25579 if err != nil {
25580 return nil, err
25581 }
25582 defer googleapi.CloseBody(res)
25583 if err := googleapi.CheckResponse(res); err != nil {
25584 return nil, gensupport.WrapError(err)
25585 }
25586 ret := &GooglePrivacyDlpV2StoredInfoType{
25587 ServerResponse: googleapi.ServerResponse{
25588 Header: res.Header,
25589 HTTPStatusCode: res.StatusCode,
25590 },
25591 }
25592 target := &ret
25593 if err := gensupport.DecodeResponse(target, res); err != nil {
25594 return nil, err
25595 }
25596 return ret, nil
25597 }
25598
25599 type ProjectsStoredInfoTypesDeleteCall struct {
25600 s *Service
25601 name string
25602 urlParams_ gensupport.URLParams
25603 ctx_ context.Context
25604 header_ http.Header
25605 }
25606
25607
25608
25609
25610
25611
25612
25613
25614 func (r *ProjectsStoredInfoTypesService) Delete(name string) *ProjectsStoredInfoTypesDeleteCall {
25615 c := &ProjectsStoredInfoTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25616 c.name = name
25617 return c
25618 }
25619
25620
25621
25622
25623 func (c *ProjectsStoredInfoTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesDeleteCall {
25624 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25625 return c
25626 }
25627
25628
25629 func (c *ProjectsStoredInfoTypesDeleteCall) Context(ctx context.Context) *ProjectsStoredInfoTypesDeleteCall {
25630 c.ctx_ = ctx
25631 return c
25632 }
25633
25634
25635
25636 func (c *ProjectsStoredInfoTypesDeleteCall) Header() http.Header {
25637 if c.header_ == nil {
25638 c.header_ = make(http.Header)
25639 }
25640 return c.header_
25641 }
25642
25643 func (c *ProjectsStoredInfoTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
25644 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25645 var body io.Reader = nil
25646 c.urlParams_.Set("alt", alt)
25647 c.urlParams_.Set("prettyPrint", "false")
25648 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25649 urls += "?" + c.urlParams_.Encode()
25650 req, err := http.NewRequest("DELETE", urls, body)
25651 if err != nil {
25652 return nil, err
25653 }
25654 req.Header = reqHeaders
25655 googleapi.Expand(req.URL, map[string]string{
25656 "name": c.name,
25657 })
25658 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25659 }
25660
25661
25662
25663
25664
25665
25666
25667 func (c *ProjectsStoredInfoTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25668 gensupport.SetOptions(c.urlParams_, opts...)
25669 res, err := c.doRequest("json")
25670 if res != nil && res.StatusCode == http.StatusNotModified {
25671 if res.Body != nil {
25672 res.Body.Close()
25673 }
25674 return nil, gensupport.WrapError(&googleapi.Error{
25675 Code: res.StatusCode,
25676 Header: res.Header,
25677 })
25678 }
25679 if err != nil {
25680 return nil, err
25681 }
25682 defer googleapi.CloseBody(res)
25683 if err := googleapi.CheckResponse(res); err != nil {
25684 return nil, gensupport.WrapError(err)
25685 }
25686 ret := &GoogleProtobufEmpty{
25687 ServerResponse: googleapi.ServerResponse{
25688 Header: res.Header,
25689 HTTPStatusCode: res.StatusCode,
25690 },
25691 }
25692 target := &ret
25693 if err := gensupport.DecodeResponse(target, res); err != nil {
25694 return nil, err
25695 }
25696 return ret, nil
25697 }
25698
25699 type ProjectsStoredInfoTypesGetCall struct {
25700 s *Service
25701 name string
25702 urlParams_ gensupport.URLParams
25703 ifNoneMatch_ string
25704 ctx_ context.Context
25705 header_ http.Header
25706 }
25707
25708
25709
25710
25711
25712
25713
25714
25715 func (r *ProjectsStoredInfoTypesService) Get(name string) *ProjectsStoredInfoTypesGetCall {
25716 c := &ProjectsStoredInfoTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25717 c.name = name
25718 return c
25719 }
25720
25721
25722
25723
25724 func (c *ProjectsStoredInfoTypesGetCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesGetCall {
25725 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25726 return c
25727 }
25728
25729
25730
25731
25732 func (c *ProjectsStoredInfoTypesGetCall) IfNoneMatch(entityTag string) *ProjectsStoredInfoTypesGetCall {
25733 c.ifNoneMatch_ = entityTag
25734 return c
25735 }
25736
25737
25738 func (c *ProjectsStoredInfoTypesGetCall) Context(ctx context.Context) *ProjectsStoredInfoTypesGetCall {
25739 c.ctx_ = ctx
25740 return c
25741 }
25742
25743
25744
25745 func (c *ProjectsStoredInfoTypesGetCall) Header() http.Header {
25746 if c.header_ == nil {
25747 c.header_ = make(http.Header)
25748 }
25749 return c.header_
25750 }
25751
25752 func (c *ProjectsStoredInfoTypesGetCall) doRequest(alt string) (*http.Response, error) {
25753 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25754 if c.ifNoneMatch_ != "" {
25755 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25756 }
25757 var body io.Reader = nil
25758 c.urlParams_.Set("alt", alt)
25759 c.urlParams_.Set("prettyPrint", "false")
25760 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25761 urls += "?" + c.urlParams_.Encode()
25762 req, err := http.NewRequest("GET", urls, body)
25763 if err != nil {
25764 return nil, err
25765 }
25766 req.Header = reqHeaders
25767 googleapi.Expand(req.URL, map[string]string{
25768 "name": c.name,
25769 })
25770 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25771 }
25772
25773
25774
25775
25776
25777
25778
25779 func (c *ProjectsStoredInfoTypesGetCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
25780 gensupport.SetOptions(c.urlParams_, opts...)
25781 res, err := c.doRequest("json")
25782 if res != nil && res.StatusCode == http.StatusNotModified {
25783 if res.Body != nil {
25784 res.Body.Close()
25785 }
25786 return nil, gensupport.WrapError(&googleapi.Error{
25787 Code: res.StatusCode,
25788 Header: res.Header,
25789 })
25790 }
25791 if err != nil {
25792 return nil, err
25793 }
25794 defer googleapi.CloseBody(res)
25795 if err := googleapi.CheckResponse(res); err != nil {
25796 return nil, gensupport.WrapError(err)
25797 }
25798 ret := &GooglePrivacyDlpV2StoredInfoType{
25799 ServerResponse: googleapi.ServerResponse{
25800 Header: res.Header,
25801 HTTPStatusCode: res.StatusCode,
25802 },
25803 }
25804 target := &ret
25805 if err := gensupport.DecodeResponse(target, res); err != nil {
25806 return nil, err
25807 }
25808 return ret, nil
25809 }
25810
25811 type ProjectsStoredInfoTypesListCall struct {
25812 s *Service
25813 parentid string
25814 urlParams_ gensupport.URLParams
25815 ifNoneMatch_ string
25816 ctx_ context.Context
25817 header_ http.Header
25818 }
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835 func (r *ProjectsStoredInfoTypesService) List(parentid string) *ProjectsStoredInfoTypesListCall {
25836 c := &ProjectsStoredInfoTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25837 c.parentid = parentid
25838 return c
25839 }
25840
25841
25842
25843 func (c *ProjectsStoredInfoTypesListCall) LocationId(locationId string) *ProjectsStoredInfoTypesListCall {
25844 c.urlParams_.Set("locationId", locationId)
25845 return c
25846 }
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856 func (c *ProjectsStoredInfoTypesListCall) OrderBy(orderBy string) *ProjectsStoredInfoTypesListCall {
25857 c.urlParams_.Set("orderBy", orderBy)
25858 return c
25859 }
25860
25861
25862
25863
25864 func (c *ProjectsStoredInfoTypesListCall) PageSize(pageSize int64) *ProjectsStoredInfoTypesListCall {
25865 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25866 return c
25867 }
25868
25869
25870
25871 func (c *ProjectsStoredInfoTypesListCall) PageToken(pageToken string) *ProjectsStoredInfoTypesListCall {
25872 c.urlParams_.Set("pageToken", pageToken)
25873 return c
25874 }
25875
25876
25877
25878
25879 func (c *ProjectsStoredInfoTypesListCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesListCall {
25880 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25881 return c
25882 }
25883
25884
25885
25886
25887 func (c *ProjectsStoredInfoTypesListCall) IfNoneMatch(entityTag string) *ProjectsStoredInfoTypesListCall {
25888 c.ifNoneMatch_ = entityTag
25889 return c
25890 }
25891
25892
25893 func (c *ProjectsStoredInfoTypesListCall) Context(ctx context.Context) *ProjectsStoredInfoTypesListCall {
25894 c.ctx_ = ctx
25895 return c
25896 }
25897
25898
25899
25900 func (c *ProjectsStoredInfoTypesListCall) Header() http.Header {
25901 if c.header_ == nil {
25902 c.header_ = make(http.Header)
25903 }
25904 return c.header_
25905 }
25906
25907 func (c *ProjectsStoredInfoTypesListCall) doRequest(alt string) (*http.Response, error) {
25908 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25909 if c.ifNoneMatch_ != "" {
25910 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25911 }
25912 var body io.Reader = nil
25913 c.urlParams_.Set("alt", alt)
25914 c.urlParams_.Set("prettyPrint", "false")
25915 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/storedInfoTypes")
25916 urls += "?" + c.urlParams_.Encode()
25917 req, err := http.NewRequest("GET", urls, body)
25918 if err != nil {
25919 return nil, err
25920 }
25921 req.Header = reqHeaders
25922 googleapi.Expand(req.URL, map[string]string{
25923 "parent": c.parentid,
25924 })
25925 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25926 }
25927
25928
25929
25930
25931
25932
25933
25934 func (c *ProjectsStoredInfoTypesListCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2ListStoredInfoTypesResponse, error) {
25935 gensupport.SetOptions(c.urlParams_, opts...)
25936 res, err := c.doRequest("json")
25937 if res != nil && res.StatusCode == http.StatusNotModified {
25938 if res.Body != nil {
25939 res.Body.Close()
25940 }
25941 return nil, gensupport.WrapError(&googleapi.Error{
25942 Code: res.StatusCode,
25943 Header: res.Header,
25944 })
25945 }
25946 if err != nil {
25947 return nil, err
25948 }
25949 defer googleapi.CloseBody(res)
25950 if err := googleapi.CheckResponse(res); err != nil {
25951 return nil, gensupport.WrapError(err)
25952 }
25953 ret := &GooglePrivacyDlpV2ListStoredInfoTypesResponse{
25954 ServerResponse: googleapi.ServerResponse{
25955 Header: res.Header,
25956 HTTPStatusCode: res.StatusCode,
25957 },
25958 }
25959 target := &ret
25960 if err := gensupport.DecodeResponse(target, res); err != nil {
25961 return nil, err
25962 }
25963 return ret, nil
25964 }
25965
25966
25967
25968
25969 func (c *ProjectsStoredInfoTypesListCall) Pages(ctx context.Context, f func(*GooglePrivacyDlpV2ListStoredInfoTypesResponse) error) error {
25970 c.ctx_ = ctx
25971 defer c.PageToken(c.urlParams_.Get("pageToken"))
25972 for {
25973 x, err := c.Do()
25974 if err != nil {
25975 return err
25976 }
25977 if err := f(x); err != nil {
25978 return err
25979 }
25980 if x.NextPageToken == "" {
25981 return nil
25982 }
25983 c.PageToken(x.NextPageToken)
25984 }
25985 }
25986
25987 type ProjectsStoredInfoTypesPatchCall struct {
25988 s *Service
25989 name string
25990 googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest
25991 urlParams_ gensupport.URLParams
25992 ctx_ context.Context
25993 header_ http.Header
25994 }
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004 func (r *ProjectsStoredInfoTypesService) Patch(name string, googleprivacydlpv2updatestoredinfotyperequest *GooglePrivacyDlpV2UpdateStoredInfoTypeRequest) *ProjectsStoredInfoTypesPatchCall {
26005 c := &ProjectsStoredInfoTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26006 c.name = name
26007 c.googleprivacydlpv2updatestoredinfotyperequest = googleprivacydlpv2updatestoredinfotyperequest
26008 return c
26009 }
26010
26011
26012
26013
26014 func (c *ProjectsStoredInfoTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsStoredInfoTypesPatchCall {
26015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26016 return c
26017 }
26018
26019
26020 func (c *ProjectsStoredInfoTypesPatchCall) Context(ctx context.Context) *ProjectsStoredInfoTypesPatchCall {
26021 c.ctx_ = ctx
26022 return c
26023 }
26024
26025
26026
26027 func (c *ProjectsStoredInfoTypesPatchCall) Header() http.Header {
26028 if c.header_ == nil {
26029 c.header_ = make(http.Header)
26030 }
26031 return c.header_
26032 }
26033
26034 func (c *ProjectsStoredInfoTypesPatchCall) doRequest(alt string) (*http.Response, error) {
26035 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26036 var body io.Reader = nil
26037 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleprivacydlpv2updatestoredinfotyperequest)
26038 if err != nil {
26039 return nil, err
26040 }
26041 c.urlParams_.Set("alt", alt)
26042 c.urlParams_.Set("prettyPrint", "false")
26043 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
26044 urls += "?" + c.urlParams_.Encode()
26045 req, err := http.NewRequest("PATCH", urls, body)
26046 if err != nil {
26047 return nil, err
26048 }
26049 req.Header = reqHeaders
26050 googleapi.Expand(req.URL, map[string]string{
26051 "name": c.name,
26052 })
26053 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26054 }
26055
26056
26057
26058
26059
26060
26061
26062 func (c *ProjectsStoredInfoTypesPatchCall) Do(opts ...googleapi.CallOption) (*GooglePrivacyDlpV2StoredInfoType, error) {
26063 gensupport.SetOptions(c.urlParams_, opts...)
26064 res, err := c.doRequest("json")
26065 if res != nil && res.StatusCode == http.StatusNotModified {
26066 if res.Body != nil {
26067 res.Body.Close()
26068 }
26069 return nil, gensupport.WrapError(&googleapi.Error{
26070 Code: res.StatusCode,
26071 Header: res.Header,
26072 })
26073 }
26074 if err != nil {
26075 return nil, err
26076 }
26077 defer googleapi.CloseBody(res)
26078 if err := googleapi.CheckResponse(res); err != nil {
26079 return nil, gensupport.WrapError(err)
26080 }
26081 ret := &GooglePrivacyDlpV2StoredInfoType{
26082 ServerResponse: googleapi.ServerResponse{
26083 Header: res.Header,
26084 HTTPStatusCode: res.StatusCode,
26085 },
26086 }
26087 target := &ret
26088 if err := gensupport.DecodeResponse(target, res); err != nil {
26089 return nil, err
26090 }
26091 return ret, nil
26092 }
26093
View as plain text